Rename SLP to SLP_MASK (#918)

Co-authored-by: Rangi <35663410+Rangi42@users.noreply.github.com>
This commit is contained in:
vulcandth
2022-06-17 21:25:56 -05:00
committed by GitHub
parent 73c020074e
commit 5f0597e944
17 changed files with 35 additions and 35 deletions

View File

@@ -128,7 +128,7 @@ ResetBatonPassStatus:
; Nightmare isn't passed.
ld a, BATTLE_VARS_STATUS
call GetBattleVar
and SLP
and SLP_MASK
jr nz, .ok
ld a, BATTLE_VARS_SUBSTATUS1

View File

@@ -13,7 +13,7 @@ BattleCommand_Nightmare:
ld a, BATTLE_VARS_STATUS_OPP
call GetBattleVarAddr
and SLP
and SLP_MASK
jr z, .failed
; Bail if the opponent is already having a nightmare.

View File

@@ -23,7 +23,7 @@ BattleCommand_CheckCurl:
BattleCommand_RolloutPower:
ld a, BATTLE_VARS_STATUS
call GetBattleVar
and SLP
and SLP_MASK
ret nz
ld hl, wPlayerRolloutCount

View File

@@ -15,7 +15,7 @@ BattleCommand_SleepTalk:
.got_moves
ld a, BATTLE_VARS_STATUS
call GetBattleVar
and SLP
and SLP_MASK
jr z, .fail
ld a, [hl]
and a

View File

@@ -1,7 +1,7 @@
BattleCommand_Snore:
ld a, BATTLE_VARS_STATUS
call GetBattleVar
and SLP
and SLP_MASK
ret nz
call ResetDamage
ld a, $1