diff --git a/src/phases/pokemon-phase.ts b/src/phases/pokemon-phase.ts index 9963e63da00..0a53cf5d1da 100644 --- a/src/phases/pokemon-phase.ts +++ b/src/phases/pokemon-phase.ts @@ -11,7 +11,7 @@ export abstract class PokemonPhase extends FieldPhase { constructor(battlerIndex?: BattlerIndex | number) { super(); - battlerIndex = battlerIndex ?? scene.getField().find(p => p?.isActive())!.getBattlerIndex(); // TODO: is the bang correct here? + battlerIndex = battlerIndex ?? globalScene.getField().find(p => p?.isActive())!.getBattlerIndex(); // TODO: is the bang correct here? if (battlerIndex === undefined) { console.warn("There are no Pokemon on the field!"); // TODO: figure out a suitable fallback behavior }