Updated run phase to extend field phase instead of pokemon phase

This commit is contained in:
jnotsknab 2025-06-19 16:52:00 -05:00
parent 05ba390ede
commit bd989b1fcc

View File

@ -2,10 +2,10 @@ import { applyAbAttrs, applyPreLeaveFieldAbAttrs } from "#app/data/abilities/app
import { StatusEffect } from "#enums/status-effect"; import { StatusEffect } from "#enums/status-effect";
import i18next from "i18next"; import i18next from "i18next";
import { NumberHolder, randSeedInt } from "#app/utils/common"; import { NumberHolder, randSeedInt } from "#app/utils/common";
import { PokemonPhase } from "./pokemon-phase";
import { globalScene } from "#app/global-scene"; import { globalScene } from "#app/global-scene";
import { calculateEscapeChance } from "#app/utils/run-utils"; import { calculateEscapeChance } from "#app/utils/run-utils";
export class AttemptRunPhase extends PokemonPhase { import { FieldPhase } from "./field-phase";
export class AttemptRunPhase extends FieldPhase {
public readonly phaseName = "AttemptRunPhase"; public readonly phaseName = "AttemptRunPhase";
/** For testing purposes: this is to force the pokemon to fail and escape */ /** For testing purposes: this is to force the pokemon to fail and escape */
public forceFailEscape = false; public forceFailEscape = false;