[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 2589faf69e
.
* 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…
Reference in New Issue