v19 Bug related to Mega Lucario

This thread pertains to v19 of Pokémon Essentials.

Thessbmzocker

Rookie
Member
Joined
May 2, 2021
Posts
4
Age
26
So I found something interesting. If you mega evolve Lucario the game doesn't really like that. The game goes into a softlock state, where this error message pops up and upon closing Lucario will do the move he used before again, altho there is no target and then will gain exp again, thus popping this error again and then repeats the whole thing upon closing of the error message. I tried Mega Lopunny and things went fine. But Mega Lucario gives that error.
Also dunno why it says Hotfixes 1.0.0 because I put the plugin into the plugins folder, but the hotfix patchnotes don't talk about this particular case anyway. If I don't mega evolve Lucario everything works fine.
[Pokémon Essentials version 19]
[v19 Hotfixes 1.0.0]

Exception: RuntimeError
Message: Lucario's new level is less than its
current level, which shouldn't happen.
[Debug: Levels: 19->16 | Exp: 4575->4638 | gain: 63]

Backtrace:
174:Battle_ExpAndMoveLearning:169:in `pbGainExpOne'
174:Battle_ExpAndMoveLearning:39:in `block (2 levels) in pbGainExp'
172:PokeBattle_Battle:389:in `block in eachInTeam'
172:PokeBattle_Battle:389:in `each'
172:PokeBattle_Battle:389:in `each_with_index'
172:PokeBattle_Battle:389:in `eachInTeam'
174:Battle_ExpAndMoveLearning:35:in `block in pbGainExp'
174:Battle_ExpAndMoveLearning:13:in `each'
174:Battle_ExpAndMoveLearning:13:in `pbGainExp'
156:Battler_UseMove:509:in `pbUseMove'
 
Top