Add a CANNOT_MOVE constant (#1182)

This commit is contained in:
Rangi
2025-05-31 15:07:34 -04:00
committed by GitHub
parent 34aae0d20f
commit fd2af282b6
3 changed files with 4 additions and 2 deletions

View File

@@ -4175,7 +4175,7 @@ PursuitSwitch:
ld a, BATTLE_VARS_MOVE
call GetBattleVarAddr
ld a, $ff
ld a, CANNOT_MOVE
ld [hl], a
pop af

View File

@@ -111,9 +111,9 @@ CheckTurn:
BattleCommand_CheckTurn:
; Repurposed as hardcoded turn handling. Useless as a command.
; Move $ff immediately ends the turn.
ld a, BATTLE_VARS_MOVE
call GetBattleVar
assert CANNOT_MOVE == $ff
inc a
jp z, EndTurn