From 12117bb2ac2a07ffa06020f66d9fbbfa69f95de5 Mon Sep 17 00:00:00 2001 From: Wlowscha <54003515+Wlowscha@users.noreply.github.com> Date: Sun, 8 Jun 2025 20:23:42 +0200 Subject: [PATCH] Using phaseManager --- src/items/held-items/instant-revive.ts | 2 +- src/items/held-items/turn-end-heal.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/items/held-items/instant-revive.ts b/src/items/held-items/instant-revive.ts index de395ecd5ff..ea8162d7c45 100644 --- a/src/items/held-items/instant-revive.ts +++ b/src/items/held-items/instant-revive.ts @@ -41,7 +41,7 @@ export class InstantReviveHeldItem extends ConsumableHeldItem { apply(params: INSTANT_REVIVE_PARAMS): boolean { const pokemon = params.pokemon; // Restore the Pokemon to half HP - globalScene.unshiftPhase( + globalScene.phaseManager.unshiftPhase( new PokemonHealPhase( pokemon.getBattlerIndex(), toDmgValue(pokemon.getMaxHp() / 2), diff --git a/src/items/held-items/turn-end-heal.ts b/src/items/held-items/turn-end-heal.ts index 772eeb0c0ca..ee78732a0d6 100644 --- a/src/items/held-items/turn-end-heal.ts +++ b/src/items/held-items/turn-end-heal.ts @@ -20,7 +20,7 @@ export class TurnEndHealHeldItem extends HeldItem { if (pokemon.isFullHp()) { return false; } - globalScene.unshiftPhase( + globalScene.phaseManager.unshiftPhase( new PokemonHealPhase( pokemon.getBattlerIndex(), toDmgValue(pokemon.getMaxHp() / 16) * stackCount,