From e580526a7315335d647780def72a8a9b408d32b2 Mon Sep 17 00:00:00 2001 From: Dread134 Date: Tue, 14 May 2024 19:12:26 -0400 Subject: [PATCH] Update ability.ts Corrected Arg index for Status immunity check for ally or not --- src/data/ability.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/ability.ts b/src/data/ability.ts index 637edf0ee..179d95045 100644 --- a/src/data/ability.ts +++ b/src/data/ability.ts @@ -1755,7 +1755,7 @@ export class StatusEffectImmunityAbAttr extends PreSetStatusAbAttr { } applyPreSetStatus(pokemon: Pokemon, passive: boolean, effect: StatusEffect, cancelled: Utils.BooleanHolder, args: any[]): boolean { - const allyCheck = args[2]; + const allyCheck = args[1]; if ((!this.immuneEffects.length || this.immuneEffects.indexOf(effect) > -1) && !allyCheck) { cancelled.value = true; return true;