From 2e200ce85e21eee3d46a4c82074425697c0b433d Mon Sep 17 00:00:00 2001 From: Remy Oukaour Date: Mon, 25 Dec 2017 15:52:03 -0500 Subject: [PATCH] More support for MAX_LEVEL = 255 (ValidateOTTrademon and Function102bdc have `cp MAX_LEVEL + 1` operations that would still fail with such a correction, so there isn't perfect support.) --- 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 f2c6b5d77..c9a001cb8 100644 --- a/battle/effect_commands.asm +++ b/battle/effect_commands.asm @@ -730,7 +730,7 @@ BattleCommand_CheckObedience: ; 343db ; risingbadge bit RISINGBADGE, [hl] - ld a, MAX_LEVEL + 1 + ld a, LOW(MAX_LEVEL + 1) jr nz, .getlevel ; stormbadge