Award ranged XP when damage is calculated instead of when it's applied
This commit is contained in:
@@ -171,7 +171,9 @@ public final class ImpactHandler {
|
||||
if (fam && player.getFamiliarManager().hasFamiliar() && !(player.getFamiliarManager().getFamiliar() instanceof Pet)) {
|
||||
source.setAttribute("fam-exp", true);
|
||||
}
|
||||
style.getSwingHandler().addExperience(source, entity, state);
|
||||
if(style != CombatStyle.RANGE) {
|
||||
style.getSwingHandler().addExperience(source, entity, state);
|
||||
}
|
||||
source.removeAttribute("fam-exp");
|
||||
}
|
||||
boolean dead = false;
|
||||
|
||||
Reference in New Issue
Block a user