Permalink
Browse files

This needs to be on this line.

  • Loading branch information...
1 parent 3668249 commit 6cf6e8ab546ef1712ecffccdda7d52708481ddcc @TfT-02 TfT-02 committed Dec 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/gmail/nossr50/skills/combat/Axes.java
View
2 src/main/java/com/gmail/nossr50/skills/combat/Axes.java
@@ -133,7 +133,6 @@ public static void impact(Player attacker, LivingEntity target, EntityDamageByEn
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 static void impact(Player attacker, LivingEntity target, EntityDamageByEn
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);

0 comments on commit 6cf6e8a

Please sign in to comment.