Using phaseManager

This commit is contained in:
Wlowscha 2025-06-08 20:23:42 +02:00
parent 2b077151ef
commit 12117bb2ac
No known key found for this signature in database
GPG Key ID: 3C8F1AD330565D04
2 changed files with 2 additions and 2 deletions

View File

@ -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),

View File

@ -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,