mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-20 16:42:45 +02:00
Fix unnecessary attr type cast in move phase
This commit is contained in:
parent
f2bf6f374e
commit
7391446dc2
@ -243,10 +243,7 @@ export class MovePhase extends BattlePhase {
|
||||
!!this.move
|
||||
.getMove()
|
||||
.findAttr(
|
||||
attr =>
|
||||
attr.is("HealStatusEffectAttr") &&
|
||||
attr.selfTarget &&
|
||||
(attr as unknown as HealStatusEffectAttr).isOfEffect(StatusEffect.FREEZE),
|
||||
attr => attr.is("HealStatusEffectAttr") && attr.selfTarget && attr.isOfEffect(StatusEffect.FREEZE),
|
||||
) ||
|
||||
(!this.pokemon.randBattleSeedInt(5) && Overrides.STATUS_ACTIVATION_OVERRIDE !== true) ||
|
||||
Overrides.STATUS_ACTIVATION_OVERRIDE === false;
|
||||
|
Loading…
Reference in New Issue
Block a user