mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-06-21 17:12:44 +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
|
!!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;
|
||||||
|
Loading…
Reference in New Issue
Block a user