mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-18 23:11:11 +00:00
[Bug] Fixes Unseen Fist ignoring abilities (#3708)
* Inserts break to prevent fall through in checkFlag * Adds break to IGNORE_PROTECT case for safety * Revert "Adds break to IGNORE_PROTECT case for safety" This reverts commit 2589faf69edd67883272761ab3ddf59a54e8c013. * Adds break to IGNORE_PROTECT properly
This commit is contained in:
parent
d6dbd25e91
commit
d3dfd006f8
@ -601,11 +601,13 @@ export default class Move implements Localizable {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case MoveFlags.IGNORE_PROTECT:
|
||||
if (user.hasAbilityWithAttr(IgnoreProtectOnContactAbAttr) &&
|
||||
this.checkFlag(MoveFlags.MAKES_CONTACT, user, target)) {
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
return !!(this.flags & flag);
|
||||
|
Loading…
x
Reference in New Issue
Block a user