mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-24 00:09:31 +02:00
fix EnemyTurnHealModifier.apply
types
This commit is contained in:
parent
c2424bc3f0
commit
becdf7254b
@ -3390,10 +3390,10 @@ export class EnemyTurnHealModifier extends EnemyPersistentModifier {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Applies {@linkcode EnemyTurnHealModifier}
|
* Applies {@linkcode EnemyTurnHealModifier}
|
||||||
* @param enemyPokemon The {@linkcode EnemyPokemon} to heal
|
* @param enemyPokemon The {@linkcode Pokemon} to heal
|
||||||
* @returns `true` if the {@linkcode EnemyPokemon} was healed
|
* @returns `true` if the {@linkcode Pokemon} was healed
|
||||||
*/
|
*/
|
||||||
override apply(enemyPokemon: EnemyPokemon): boolean {
|
override apply(enemyPokemon: Pokemon): boolean {
|
||||||
if (!enemyPokemon.isFullHp()) {
|
if (!enemyPokemon.isFullHp()) {
|
||||||
const scene = enemyPokemon.scene;
|
const scene = enemyPokemon.scene;
|
||||||
scene.unshiftPhase(new PokemonHealPhase(scene, enemyPokemon.getBattlerIndex(),
|
scene.unshiftPhase(new PokemonHealPhase(scene, enemyPokemon.getBattlerIndex(),
|
||||||
|
Loading…
Reference in New Issue
Block a user