Fix issue with level cap by using max integer
This commit is contained in:
1 parent
ff802d162b
commit
8d314b199f
3 files changed
+5
-3
No files matched your search
@@ -1080,7 +1080,7 @@ export class PokemonLevelIncrementModifier extends ConsumablePokemonModifier {
|
||||
pokemon.scene.applyModifiers(LevelIncrementBoosterModifier, true, levelCount);
|
||||
|
||||
pokemon.level += levelCount.value;
|
||||
if (pokemon.level <= pokemon.scene.getMaxExpLevel()) {
|
||||
if (pokemon.level <= pokemon.scene.getMaxExpLevel(true)) {
|
||||
pokemon.exp = getLevelTotalExp(pokemon.level, pokemon.species.growthRate);
|
||||
pokemon.levelExp = 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user