diff --git a/src/main/java/com/gmail/nossr50/skills/combat/Axes.java b/src/main/java/com/gmail/nossr50/skills/combat/Axes.java index 3657b6ec6..a12e880f2 100644 --- a/src/main/java/com/gmail/nossr50/skills/combat/Axes.java +++ b/src/main/java/com/gmail/nossr50/skills/combat/Axes.java @@ -133,7 +133,6 @@ public class Axes { int impactIncreaseLevel = advancedConfig.getArmorImpactIncreaseLevel(); float impactMaxDamage = (float) advancedConfig.getArmorImpactMaxDurabilityDamage() / 100F; short maxDurability; - int lowerdamage = 0; durabilityDamage += (int) (((double) Users.getProfile(attacker).getSkillLevel(SkillType.AXES) / (double) impactIncreaseLevel)); if (!hasArmor(targetPlayer)) { @@ -142,6 +141,7 @@ public class Axes { else { for (ItemStack armor : targetPlayer.getInventory().getArmorContents()) { if(Math.random() * 100 > 75) { + int lowerdamage = 0; for (int i = 0; i <= durabilityDamage; i ++) { if (armor.containsEnchantment(Enchantment.DURABILITY)) { int level = armor.getEnchantmentLevel(Enchantment.DURABILITY);