From 6199000778f283c099fff9e7dce810abfaf6f713 Mon Sep 17 00:00:00 2001 From: flx-sta <50131232+flx-sta@users.noreply.github.com> Date: Thu, 5 Sep 2024 07:47:42 -0700 Subject: [PATCH] StateStageChangePhase replace ~~`IntegerHolder`~~ with `NumberHolder` Update Utils import and replace all occurcences of `Utils.` --- src/phases/stat-stage-change-phase.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/phases/stat-stage-change-phase.ts b/src/phases/stat-stage-change-phase.ts index d972fa4b47b..4418c38c849 100644 --- a/src/phases/stat-stage-change-phase.ts +++ b/src/phases/stat-stage-change-phase.ts @@ -6,7 +6,7 @@ import Pokemon from "#app/field/pokemon"; import { getPokemonNameWithAffix } from "#app/messages"; import { ResetNegativeStatStageModifier } from "#app/modifier/modifier"; import { handleTutorial, Tutorial } from "#app/tutorial"; -import * as Utils from "#app/utils"; +import { NumberHolder, BooleanHolder } from "#app/utils"; import i18next from "i18next"; import { PokemonPhase } from "./pokemon-phase"; import { Stat, type BattleStat, getStatKey, getStatStageChangeDescriptionKey } from "#enums/stat"; @@ -42,7 +42,7 @@ export class StatStageChangePhase extends PokemonPhase { return this.end(); } - const stages = new Utils.IntegerHolder(this.stages); + const stages = new NumberHolder(this.stages); if (!this.ignoreAbilities) { applyAbAttrs(StatStageChangeMultiplierAbAttr, pokemon, null, false, stages); @@ -51,7 +51,7 @@ export class StatStageChangePhase extends PokemonPhase { let simulate = false; const filteredStats = this.stats.filter(stat => { - const cancelled = new Utils.BooleanHolder(false); + const cancelled = new BooleanHolder(false); if (!this.selfTarget && stages.value < 0) { // TODO: Include simulate boolean when tag applications can be simulated