Adds break to IGNORE_PROTECT case for safety

This commit is contained in:
Christopher Schmidt 2024-08-23 15:04:11 -04:00
parent ac5c3b8739
commit 2589faf69e
2 changed files with 8 additions and 1 deletions

View File

@ -601,6 +601,7 @@ export default class Move implements Localizable {
this.checkFlag(MoveFlags.MAKES_CONTACT, user, target)) {
return true;
}
break;
}
return !!(this.flags & flag);

View File

@ -29,7 +29,13 @@ import { type ModifierOverride } from "./modifier/modifier-type";
* }
* ```
*/
const overrides = {} satisfies Partial<InstanceType<typeof DefaultOverrides>>;
const overrides = {
ABILITY_OVERRIDE: Abilities.STURDY,
OPP_ABILITY_OVERRIDE: Abilities.UNSEEN_FIST,
MOVESET_OVERRIDE: [Moves.SPLASH],
OPP_MOVESET_OVERRIDE: [Moves.WICKED_BLOW, Moves.WICKED_BLOW, Moves.WICKED_BLOW, Moves.WICKED_BLOW],
OPP_LEVEL_OVERRIDE: 20
} satisfies Partial<InstanceType<typeof DefaultOverrides>>;
/**
* If you need to add Overrides values for local testing do that inside {@linkcode overrides}