adjust incorrect offset on level-up trigger

This commit is contained in:
Blackdigits 2020-05-17 19:38:50 +07:00
parent b3f1687aa9
commit 7da69adb42

View File

@ -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");
}
}