mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 17:12:44 +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 {
|
apply(params: INSTANT_REVIVE_PARAMS): boolean {
|
||||||
const pokemon = params.pokemon;
|
const pokemon = params.pokemon;
|
||||||
// Restore the Pokemon to half HP
|
// Restore the Pokemon to half HP
|
||||||
globalScene.unshiftPhase(
|
globalScene.phaseManager.unshiftPhase(
|
||||||
new PokemonHealPhase(
|
new PokemonHealPhase(
|
||||||
pokemon.getBattlerIndex(),
|
pokemon.getBattlerIndex(),
|
||||||
toDmgValue(pokemon.getMaxHp() / 2),
|
toDmgValue(pokemon.getMaxHp() / 2),
|
||||||
|
@ -20,7 +20,7 @@ export class TurnEndHealHeldItem extends HeldItem {
|
|||||||
if (pokemon.isFullHp()) {
|
if (pokemon.isFullHp()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
globalScene.unshiftPhase(
|
globalScene.phaseManager.unshiftPhase(
|
||||||
new PokemonHealPhase(
|
new PokemonHealPhase(
|
||||||
pokemon.getBattlerIndex(),
|
pokemon.getBattlerIndex(),
|
||||||
toDmgValue(pokemon.getMaxHp() / 16) * stackCount,
|
toDmgValue(pokemon.getMaxHp() / 16) * stackCount,
|
||||||
|
Loading…
Reference in New Issue
Block a user