diff options
author | bbbbbbbbba <rdfzc14@qq.com> | 2019-10-20 18:25:34 -0400 |
---|---|---|
committer | Rangi <35663410+Rangi42@users.noreply.github.com> | 2019-10-20 18:25:34 -0400 |
commit | 0d48d829d407524fa4edd45cc012f4e7d935e9b4 (patch) | |
tree | e9ced3e58d25b6a66ef9a0930a76052abedfc3c6 /engine/battle/core.asm | |
parent | e3e0bcd653f8d671f6fd1390fa922e3b644f4a34 (diff) |
Document Special Defense badge boost glitch (#651)
Document Special Defense badge boost glitch
Diffstat (limited to 'engine/battle/core.asm')
-rw-r--r-- | engine/battle/core.asm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/engine/battle/core.asm b/engine/battle/core.asm index bc20ab3f3..4e62a4a91 100644 --- a/engine/battle/core.asm +++ b/engine/battle/core.asm @@ -6758,12 +6758,12 @@ BadgeStatBoosts: ; depending on which badges have been obtained. ; Every other badge boosts a stat, starting from the first. +; GlacierBadge also boosts Special Defense, although the relevant code is buggy (see below). ; ZephyrBadge: Attack ; PlainBadge: Speed ; MineralBadge: Defense -; GlacierBadge: Special Attack -; RisingBadge: Special Defense +; GlacierBadge: Special Attack and Special Defense ; The boosted stats are in order, except PlainBadge and MineralBadge's boosts are swapped. @@ -6806,7 +6806,9 @@ BadgeStatBoosts: srl b dec c jr nz, .CheckBadge -; And the last one (RisingBadge) too. +; Check GlacierBadge again for Special Defense. +; This check is buggy because it assumes that a is set by the "ld a, b" in the above loop, +; but it can actually be overwritten by the call to BoostStat. srl a call c, BoostStat ret |