Fix unnecessary attr type cast in move phase

This commit is contained in:
Sirz Benjie 2025-06-18 13:25:45 -06:00
parent f2bf6f374e
commit 7391446dc2
No known key found for this signature in database
GPG Key ID: 38AC42D68CF5E138

View File

@ -243,10 +243,7 @@ export class MovePhase extends BattlePhase {
!!this.move !!this.move
.getMove() .getMove()
.findAttr( .findAttr(
attr => attr => attr.is("HealStatusEffectAttr") && attr.selfTarget && attr.isOfEffect(StatusEffect.FREEZE),
attr.is("HealStatusEffectAttr") &&
attr.selfTarget &&
(attr as unknown as HealStatusEffectAttr).isOfEffect(StatusEffect.FREEZE),
) || ) ||
(!this.pokemon.randBattleSeedInt(5) && Overrides.STATUS_ACTIVATION_OVERRIDE !== true) || (!this.pokemon.randBattleSeedInt(5) && Overrides.STATUS_ACTIVATION_OVERRIDE !== true) ||
Overrides.STATUS_ACTIVATION_OVERRIDE === false; Overrides.STATUS_ACTIVATION_OVERRIDE === false;