mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06: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) {
|
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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user