Skip to content

Commit

Permalink
fix stake instant kill test only checking on condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheaterpaul committed Nov 29, 2023
1 parent fcabfc9 commit 66ea51a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/de/teamlapen/vampirism/items/StakeItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ public static boolean canKillInstant(@NotNull LivingEntity target, LivingEntity
}
if (instaKillFromBehind && !UtilLib.canReallySee(target, attacker, true)) {
return !(VampirismConfig.BALANCE.hsInstantKill2OnlyNPC.get() && target instanceof Player) && target.getMaxHealth() < VampirismConfig.BALANCE.hsInstantKill2MaxHealth.get();
} else if (instaKillLowHealth && target.getHealth() <= (VampirismConfig.BALANCE.hsInstantKill1MaxHealth.get() * target.getMaxHealth())) {
}
if (instaKillLowHealth && target.getHealth() <= (VampirismConfig.BALANCE.hsInstantKill1MaxHealth.get() * target.getMaxHealth())) {
return !VampirismConfig.BALANCE.hsInstantKill1FromBehind.get() || !UtilLib.canReallySee(target, attacker, true);

}
Expand Down

0 comments on commit 66ea51a

Please sign in to comment.