From ce7e955d10ce86109a458dca23845bf5e64c6db0 Mon Sep 17 00:00:00 2001 From: Eldred Habert Date: Sun, 3 Mar 2019 18:36:42 +0100 Subject: 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)` --- docs/bugs_and_glitches.md | 1 + 1 file changed, 1 insertion(+) (limited to 'docs') diff --git a/docs/bugs_and_glitches.md b/docs/bugs_and_glitches.md index 72a333757..baa0a52de 100644 --- a/docs/bugs_and_glitches.md +++ b/docs/bugs_and_glitches.md @@ -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 -- cgit v1.2.3