fix EnemyTurnHealModifier.apply types

This commit is contained in:
flx-sta 2024-10-02 08:41:08 -07:00
parent c2424bc3f0
commit becdf7254b

View File

@ -3390,10 +3390,10 @@ export class EnemyTurnHealModifier extends EnemyPersistentModifier {
/**
* Applies {@linkcode EnemyTurnHealModifier}
* @param enemyPokemon The {@linkcode EnemyPokemon} to heal
* @returns `true` if the {@linkcode EnemyPokemon} was healed
* @param enemyPokemon The {@linkcode Pokemon} to heal
* @returns `true` if the {@linkcode Pokemon} was healed
*/
override apply(enemyPokemon: EnemyPokemon): boolean {
override apply(enemyPokemon: Pokemon): boolean {
if (!enemyPokemon.isFullHp()) {
const scene = enemyPokemon.scene;
scene.unshiftPhase(new PokemonHealPhase(scene, enemyPokemon.getBattlerIndex(),