Replaces STATUS2 usage with volatiles in code (#7262)

Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
This commit is contained in:
Nephrite
2025-07-11 23:53:49 +03:00
committed by GitHub
parent 9228826ae1
commit a1e67572b6
45 changed files with 583 additions and 598 deletions

View File

@@ -35,7 +35,7 @@ void BS_TrySetOctolock(void)
else
{
gDisableStructs[battler].octolock = TRUE;
gBattleMons[battler].status2 |= STATUS2_ESCAPE_PREVENTION;
gBattleMons[battler].volatiles.escapePrevention = TRUE;
gDisableStructs[battler].battlerPreventingEscape = gBattlerAttacker;
gBattlescriptCurrInstr = cmd->nextInstr;
}