mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2025-01-30 10:51:23 +01:00
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());
|
processTrigger(player, profess, "level-up-" + prof + "-" + event.getNewLevel());
|
||||||
} else {
|
} else {
|
||||||
processTrigger(player, profess, "level-up");
|
processTrigger(player, profess, "level-up");
|
||||||
processTrigger(player, profess, "level-up-" + (event.getNewLevel() - 1));
|
processTrigger(player, profess, "level-up-" + event.getNewLevel());
|
||||||
if(profess.getMaxLevel() == (event.getNewLevel() - 1))
|
if(profess.getMaxLevel() == event.getNewLevel())
|
||||||
processTrigger(player, profess, "level-up-max");
|
processTrigger(player, profess, "level-up-max");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user