interaction with levelup events

This commit is contained in:
cadi 2024-06-28 18:38:52 +09:00
parent 8a5a8ebd2c
commit ccaa35fb3f

View File

@ -4576,6 +4576,10 @@ export class LevelUpPhase extends PlayerPartyMemberPokemonPhase {
this.scene.unshiftPhase(new EvolutionPhase(this.scene, pokemon as PlayerPokemon, evolution, this.lastLevel)); this.scene.unshiftPhase(new EvolutionPhase(this.scene, pokemon as PlayerPokemon, evolution, this.lastLevel));
} }
} }
if (pokemon.getTag(BattlerTagType.POWER_TRICK)) {
[pokemon.stats[Stat.ATK], pokemon.stats[Stat.DEF]] = [pokemon.stats[Stat.DEF], pokemon.stats[Stat.ATK]];
}
} }
} }