mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 23:13:42 +02:00
fix: remnant change to immune effects
This commit is contained in:
parent
e938ff608d
commit
8003215c39
@ -2953,7 +2953,8 @@ export class PostSummonHealStatusAbAttr extends PostSummonRemoveEffectAbAttr {
|
||||
|
||||
public override canApply({ pokemon }: AbAttrBaseParams): boolean {
|
||||
const status = pokemon.status?.effect;
|
||||
return status != null && this.immuneEffects.includes(status);
|
||||
const immuneEffects = this.immuneEffects;
|
||||
return status != null && (immuneEffects.length === 0 || immuneEffects.includes(status));
|
||||
}
|
||||
|
||||
public override apply({ pokemon }: AbAttrBaseParams): void {
|
||||
|
Loading…
Reference in New Issue
Block a user