mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Deal skillShot bonus damage properly
This commit is contained in:
parent
f7928787dc
commit
cfd5bfe2c4
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user