mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-04 07:22:19 +02:00
Fix missing string call in switch summon phase
This commit is contained in:
parent
db5ce39a5c
commit
5b13d7d9ba
@ -6,7 +6,6 @@ import {
|
|||||||
PreSummonAbAttr,
|
PreSummonAbAttr,
|
||||||
PreSwitchOutAbAttr,
|
PreSwitchOutAbAttr,
|
||||||
} from "#app/data/abilities/ability";
|
} from "#app/data/abilities/ability";
|
||||||
import { ForceSwitchOutAttr } from "#app/data/moves/move";
|
|
||||||
import { allMoves } from "#app/data/data-lists";
|
import { allMoves } from "#app/data/data-lists";
|
||||||
import { getPokeballTintColor } from "#app/data/pokeball";
|
import { getPokeballTintColor } from "#app/data/pokeball";
|
||||||
import { SpeciesFormChangeActiveTrigger } from "#app/data/pokemon-forms/form-change-triggers";
|
import { SpeciesFormChangeActiveTrigger } from "#app/data/pokemon-forms/form-change-triggers";
|
||||||
@ -226,7 +225,7 @@ export class SwitchSummonPhase extends SummonPhase {
|
|||||||
|
|
||||||
const currentCommand = globalScene.currentBattle.turnCommands[this.fieldIndex]?.command;
|
const currentCommand = globalScene.currentBattle.turnCommands[this.fieldIndex]?.command;
|
||||||
const lastPokemonIsForceSwitchedAndNotFainted =
|
const lastPokemonIsForceSwitchedAndNotFainted =
|
||||||
lastUsedMove?.hasAttr(ForceSwitchOutAttr) && !this.lastPokemon.isFainted();
|
lastUsedMove?.hasAttr("ForceSwitchOutAttr") && !this.lastPokemon.isFainted();
|
||||||
const lastPokemonHasForceSwitchAbAttr =
|
const lastPokemonHasForceSwitchAbAttr =
|
||||||
this.lastPokemon.hasAbilityWithAttr(PostDamageForceSwitchAbAttr) && !this.lastPokemon.isFainted();
|
this.lastPokemon.hasAbilityWithAttr(PostDamageForceSwitchAbAttr) && !this.lastPokemon.isFainted();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user