fix EnemyAttackStatusEffectChanceModifier.apply types

This commit is contained in:
flx-sta 2024-10-02 08:40:36 -07:00
parent eb5128f41c
commit c2424bc3f0

View File

@ -3435,10 +3435,10 @@ export class EnemyAttackStatusEffectChanceModifier extends EnemyPersistentModifi
/** /**
* Applies {@linkcode EnemyAttackStatusEffectChanceModifier} * Applies {@linkcode EnemyAttackStatusEffectChanceModifier}
* @param enemyPokemon {@linkcode EnemyPokemon} to apply the status effect to * @param enemyPokemon {@linkcode Pokemon} to apply the status effect to
* @returns `true` if the {@linkcode EnemyPokemon} was affected * @returns `true` if the {@linkcode Pokemon} was affected
*/ */
override apply(enemyPokemon: EnemyPokemon): boolean { override apply(enemyPokemon: Pokemon): boolean {
if (Phaser.Math.RND.realInRange(0, 1) < (this.chance * this.getStackCount())) { if (Phaser.Math.RND.realInRange(0, 1) < (this.chance * this.getStackCount())) {
return enemyPokemon.trySetStatus(this.effect, true); return enemyPokemon.trySetStatus(this.effect, true);
} }