Fix improper recursive call for the IGNORE_PROTECT check

This commit is contained in:
Sirz Benjie 2025-02-06 21:40:32 -06:00
parent e61b3473e9
commit 36289c25e1
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -663,7 +663,7 @@ export default class Move implements Localizable {
break;
case MoveFlags.IGNORE_PROTECT:
if (user.hasAbilityWithAttr(IgnoreProtectOnContactAbAttr)
&& this.doesFlagEffectApply({ flag: MoveFlags.MAKES_CONTACT, user, target })) {
&& this.doesFlagEffectApply({ flag: MoveFlags.MAKES_CONTACT, user, target: null })) {
return true;
}
break;