forked from Upstream/mmocore
adjust incorrect offset on level-up trigger
This commit is contained in:
parent
b3f1687aa9
commit
7da69adb42
@ -26,8 +26,8 @@ public class LevelUpEventTrigger implements EventTriggerHandler {
|
||||
processTrigger(player, profess, "level-up-" + prof + "-" + event.getNewLevel());
|
||||
} else {
|
||||
processTrigger(player, profess, "level-up");
|
||||
processTrigger(player, profess, "level-up-" + (event.getNewLevel() - 1));
|
||||
if(profess.getMaxLevel() == (event.getNewLevel() - 1))
|
||||
processTrigger(player, profess, "level-up-" + event.getNewLevel());
|
||||
if(profess.getMaxLevel() == event.getNewLevel())
|
||||
processTrigger(player, profess, "level-up-max");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user