diff options
author | Remy Oukaour <remy.oukaour@gmail.com> | 2017-12-25 15:52:03 -0500 |
---|---|---|
committer | Remy Oukaour <remy.oukaour@gmail.com> | 2017-12-25 15:52:03 -0500 |
commit | 2e200ce85e21eee3d46a4c82074425697c0b433d (patch) | |
tree | a88a00cd36641ad5cc4898a037fc74b55cd456c7 | |
parent | 17f45b5c95b7ec33bd28d7ab1e8869e287ea4dbc (diff) |
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.)
-rw-r--r-- | battle/effect_commands.asm | 2 |
1 files changed, 1 insertions, 1 deletions
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 |