mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-22 23:34:44 +02:00
Deal skillShot bonus damage properly
This commit is contained in:
@@ -102,7 +102,7 @@ public class ArcheryManager extends SkillManager {
|
|||||||
*/
|
*/
|
||||||
public void skillShot(LivingEntity target, double damage, Arrow arrow) {
|
public void skillShot(LivingEntity target, double damage, Arrow arrow) {
|
||||||
double damageBonusPercent = Math.min(((getSkillLevel() / Archery.skillShotIncreaseLevel) * Archery.skillShotIncreasePercentage), Archery.skillShotMaxBonusPercentage);
|
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);
|
CombatUtils.dealDamage(target, archeryBonus, DamageCause.PROJECTILE, arrow, mcMMOPlayer, SkillType.ARCHERY);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user