diff --git a/src/main/java/com/gmail/nossr50/Combat.java b/src/main/java/com/gmail/nossr50/Combat.java index 59d10660e..ae2ebdd4d 100644 --- a/src/main/java/com/gmail/nossr50/Combat.java +++ b/src/main/java/com/gmail/nossr50/Combat.java @@ -101,7 +101,7 @@ public class Combat if(PPa.getFistsPreparationMode()) Unarmed.berserkActivationCheck(attacker, PPa); - damage += Unarmed.unarmedBonus(PPa); + damage += Unarmed.unarmedBonus(PPa.getSkillLevel(SkillType.UNARMED)); if(PPa.getBerserkMode()) damage *= 1.5; diff --git a/src/main/java/com/gmail/nossr50/skills/Unarmed.java b/src/main/java/com/gmail/nossr50/skills/Unarmed.java index c0ca8aaee..1cd7d5b43 100644 --- a/src/main/java/com/gmail/nossr50/skills/Unarmed.java +++ b/src/main/java/com/gmail/nossr50/skills/Unarmed.java @@ -54,12 +54,12 @@ public class Unarmed } } - public static int unarmedBonus(PlayerProfile PPa) + public static int unarmedBonus(int skillLevel) { int bonus = 3; //Add 1 DMG for every 50 skill levels - bonus += PPa.getSkillLevel(SkillType.UNARMED)/50; + bonus += skillLevel / 50; if(bonus > 8) bonus = 8;