From 29b41068cb0644956494dd2b7b75331a336b8d26 Mon Sep 17 00:00:00 2001 From: Remy Oukaour <remy.oukaour@gmail.com> Date: Mon, 25 Dec 2017 16:21:31 -0500 Subject: [PATCH] LOW(MAX_LEVEL + 1) would still fail for MAX_LEVEL = 255, so don't try supporting it here --- battle/effect_commands.asm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/battle/effect_commands.asm b/battle/effect_commands.asm index c9a001cb8..f2c6b5d77 100644 --- a/battle/effect_commands.asm +++ b/battle/effect_commands.asm @@ -730,7 +730,7 @@ BattleCommand_CheckObedience: ; 343db ; risingbadge bit RISINGBADGE, [hl] - ld a, LOW(MAX_LEVEL + 1) + ld a, MAX_LEVEL + 1 jr nz, .getlevel ; stormbadge