Only have 1 xp gain instance for archery.

This commit is contained in:
t00thpick1
2019-01-31 19:55:09 -05:00
parent a2f9ab70aa
commit cb89a80fd8
2 changed files with 5 additions and 5 deletions

View File

@ -194,10 +194,10 @@ public final class CombatUtils {
archeryManager.retrieveArrows(target);
}
archeryManager.distanceXpBonus(target, arrow);
double distanceMultiplier = archeryManager.distanceXpBonusMultiplier(target, arrow);
applyScaledModifiers(initialDamage, finalDamage, event);
startGainXp(mcMMOPlayer, target, PrimarySkillType.ARCHERY, arrow.getMetadata(mcMMO.bowForceKey).get(0).asDouble());
startGainXp(mcMMOPlayer, target, PrimarySkillType.ARCHERY, arrow.getMetadata(mcMMO.bowForceKey).get(0).asDouble() * distanceMultiplier);
}
/**