Deal skillShot bonus damage properly

This commit is contained in:
TfT_02 2013-09-11 17:08:59 +02:00
parent f7928787dc
commit cfd5bfe2c4

View File

@ -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);
}