Update ability.ts

Corrected Arg index for Status immunity check for ally or not
pull/754/head
Dread134 2024-05-14 19:12:26 -04:00
parent 93b7ba019f
commit e580526a73
1 changed files with 1 additions and 1 deletions

View File

@ -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;