summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorISSOtm <eldredhabert0@gmail.com>2019-03-04 00:01:55 +0100
committerISSOtm <eldredhabert0@gmail.com>2019-03-04 00:01:55 +0100
commitd79fca8c6e0c3da8782b9952740706bf73e97a17 (patch)
tree693b183d703da97b056a9f88e5b0fa0921037cda
parentc57ed5775cfe44e537d26797ed98b6467b4db478 (diff)
Add Pursuit-switching fainting no-status-clearing fix
Ridiculously long and stupid name for a bug that took a ridiculous and stupid amount of time to track. :')
-rw-r--r--docs/bugs_and_glitches.md23
1 files changed, 22 insertions, 1 deletions
diff --git a/docs/bugs_and_glitches.md b/docs/bugs_and_glitches.md
index 7b9caf084..10f405865 100644
--- a/docs/bugs_and_glitches.md
+++ b/docs/bugs_and_glitches.md
@@ -387,7 +387,28 @@ Add this to the end of each file:
([Video](https://www.youtube.com/watch?v=tiRvw-Nb2ME))
-*To do:* Identify specific code causing this bug and fix it.
+**Fix:** Edit `PursuitSwitch` in [engine/battle/core.asm](/engine/battle/core.asm)
+
+```diff
+ ld a, $f0
+ ld [wCryTracks], a
+ ld a, [wBattleMonSpecies]
+ call PlayStereoCry
++ ld a, [wCurBattleMon]
++ push af
+ ld a, [wLastPlayerMon]
++ ld [wCurBattleMon], a
++ call UpdateFaintedPlayerMon
++ pop af
++ ld [wCurBattleMon], a
+- ld c, a
+- ld hl, wBattleParticipantsNotFainted
+- ld b, RESET_FLAG
+- predef SmallFarFlagAction
+ call PlayerMonFaintedAnimation
+ ld hl, BattleText_MonFainted
+ jr .done_fainted
+```
## Lock-On and Mind Reader don't always bypass Fly and Dig