You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Correct Metal Powder fix
The cap would be applied when it shouldn't - if the high byte was below `HIGH(MAX_STAT_VALUE)` (and thus the value below the cap) but the low byte above `LOW(MAX_STAT_VALUE)`
This commit is contained in:
@@ -126,6 +126,7 @@ Some fixes are mentioned as breaking compatibility with link battles. This can b
|
||||
+ ld a, HIGH(MAX_STAT_VALUE)
|
||||
+ cp b
|
||||
+ jr c, .cap
|
||||
+ ret nz
|
||||
+ ld a, LOW(MAX_STAT_VALUE)
|
||||
+ cp c
|
||||
+ ret nc
|
||||
|
Reference in New Issue
Block a user