diff options
| author | Jordan Moore <46928924+jordanmoore753@users.noreply.github.com> | 2025-12-26 12:20:49 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-26 12:20:49 -0500 |
| commit | 0555b42dc0ceffaae613e97cc0cf2e8c0b45013c (patch) | |
| tree | 13576e139627ac6d144acf4b1b44c82bd18e2c6b | |
| parent | Specify a max item length for `list_start` (#552) (diff) | |
| download | pokeyellow-0555b42dc0ceffaae613e97cc0cf2e8c0b45013c.tar.gz pokeyellow-0555b42dc0ceffaae613e97cc0cf2e8c0b45013c.tar.xz pokeyellow-0555b42dc0ceffaae613e97cc0cf2e8c0b45013c.zip | |
Replace magic number `$7` with `SLP_MASK` constant (#555)
| -rw-r--r-- | engine/battle/effects.asm | 4 |
1 files 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 |
