From 0555b42dc0ceffaae613e97cc0cf2e8c0b45013c Mon Sep 17 00:00:00 2001 From: Jordan Moore <46928924+jordanmoore753@users.noreply.github.com> Date: Fri, 26 Dec 2025 12:20:49 -0500 Subject: Replace magic number `$7` with `SLP_MASK` constant (#555) --- engine/battle/effects.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/battle/effects.asm b/engine/battle/effects.asm index 394e07e5..20e792d8 100644 --- a/engine/battle/effects.asm +++ b/engine/battle/effects.asm @@ -41,7 +41,7 @@ SleepEffect: ; including the event where the target already has another status ld a, [de] ld b, a - and $7 + and SLP_MASK jr z, .notAlreadySleeping ; can't affect a mon that is already asleep ld hl, AlreadyAsleepText jp PrintText @@ -58,7 +58,7 @@ SleepEffect: .setSleepCounter ; set target's sleep counter to a random number between 1 and 7 call BattleRandom - and $7 + and SLP_MASK jr z, .setSleepCounter ld [de], a call PlayCurrentMoveAnimation2 -- cgit v1.3.1-sl0p