From ccaa35fb3f58fd304bd47b0d873abef20a1f6d30 Mon Sep 17 00:00:00 2001 From: cadi Date: Fri, 28 Jun 2024 18:38:52 +0900 Subject: [PATCH] interaction with levelup events --- src/phases.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/phases.ts b/src/phases.ts index 263a1673671..fa053054748 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -4576,6 +4576,10 @@ export class LevelUpPhase extends PlayerPartyMemberPokemonPhase { 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]]; + } } }