Skip to content

Commit

Permalink
fix EnemyEndureChanceModifier.apply types
Browse files Browse the repository at this point in the history
  • Loading branch information
flx-sta committed Oct 2, 2024
1 parent fe026af commit eb5128f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modifier/modifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3518,10 +3518,10 @@ export class EnemyEndureChanceModifier extends EnemyPersistentModifier {

/**
* Applies {@linkcode EnemyEndureChanceModifier}
* @param target {@linkcode EnemyPokemon} to apply the {@linkcode BattlerTagType.ENDURING} chance to
* @returns `true` if {@linkcode EnemyPokemon} endured
* @param target {@linkcode Pokemon} to apply the {@linkcode BattlerTagType.ENDURING} chance to
* @returns `true` if {@linkcode Pokemon} endured
*/
override apply(target: EnemyPokemon): boolean {
override apply(target: Pokemon): boolean {
if (target.battleData.endured || Phaser.Math.RND.realInRange(0, 1) >= (this.chance * this.getStackCount())) {
return false;
}
Expand Down

0 comments on commit eb5128f

Please sign in to comment.