mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 00:52:47 +02:00
Using phaseManager
This commit is contained in:
parent
2b077151ef
commit
12117bb2ac
@ -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),
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user