Inserts break to prevent fall through in checkFlag

This commit is contained in:
Christopher Schmidt 2024-08-23 14:05:58 -04:00
parent 828897316e
commit ac5c3b8739
1 changed files with 1 additions and 0 deletions

View File

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