From cfd5bfe2c44b288ff4c51375dd41b1eaefa20340 Mon Sep 17 00:00:00 2001 From: TfT_02 Date: Wed, 11 Sep 2013 17:08:59 +0200 Subject: [PATCH] Deal skillShot bonus damage properly --- .../java/com/gmail/nossr50/skills/archery/ArcheryManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/skills/archery/ArcheryManager.java b/src/main/java/com/gmail/nossr50/skills/archery/ArcheryManager.java index 315706353..86335591e 100644 --- a/src/main/java/com/gmail/nossr50/skills/archery/ArcheryManager.java +++ b/src/main/java/com/gmail/nossr50/skills/archery/ArcheryManager.java @@ -102,7 +102,7 @@ public class ArcheryManager extends SkillManager { */ public void skillShot(LivingEntity target, double damage, Arrow arrow) { double damageBonusPercent = Math.min(((getSkillLevel() / Archery.skillShotIncreaseLevel) * Archery.skillShotIncreasePercentage), Archery.skillShotMaxBonusPercentage); - double archeryBonus = damage * damageBonusPercent; + double archeryBonus = (damage * damageBonusPercent) - damage; CombatUtils.dealDamage(target, archeryBonus, DamageCause.PROJECTILE, arrow, mcMMOPlayer, SkillType.ARCHERY); }