mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-19 14:52:19 +02:00
Fix improper recursive call for the IGNORE_PROTECT check
This commit is contained in:
parent
e61b3473e9
commit
36289c25e1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user