From 0bc8bbacc7388cb54aebc3130ff51b1153384850 Mon Sep 17 00:00:00 2001 From: Luc Date: Mon, 29 Apr 2024 13:47:25 -0400 Subject: [PATCH] improved formatting --- src/phases.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/phases.ts b/src/phases.ts index 3626d485f6f..814dcdcf06a 100644 --- a/src/phases.ts +++ b/src/phases.ts @@ -1420,10 +1420,9 @@ export class SwitchSummonPhase extends SummonPhase { super.onEnd(); const pokemon = this.getPokemon(); - - const moveId = pokemon.scene.currentBattle.turnCommands[this.fieldIndex]?.move?.move + const moveId = pokemon.scene.currentBattle.turnCommands[this.fieldIndex]?.move?.move; const lastUsedMove = moveId ? allMoves[moveId] : undefined; - + // Compensate for turn spent summoning if (pokemon.scene.currentBattle.turnCommands[this.fieldIndex]?.command === Command.POKEMON || !!lastUsedMove?.findAttr(attr => attr instanceof ForceSwitchOutAttr)) //check if hard switch OR pivot move was used pokemon.battleSummonData.turnCount--;