shithub: pokecrystal

Download patch

ref: a5c1d9572c75fde821697c74b460522081c06aa3
parent: 53c92b4792ede559f9a773d77ee44a2e9064bbbf
author: Rangi <remy.oukaour+rangi42@gmail.com>
date: Sat Jan 19 14:27:45 EST 2019

Fix: Clair can give TM24 Dragonbreath twice

--- a/docs/bugs_and_glitches.md
+++ b/docs/bugs_and_glitches.md
@@ -785,7 +785,17 @@
 
 ([Video](https://www.youtube.com/watch?v=8BvBjqxmyOk))
 
-*To do:* Identify specific code causing this bug and fix it.
+**Fix:** Edit `DragonsDen1F_MapScripts` in [maps/DragonsDen1F.asm](/maps/DragonsDen1F.asm):
+
+```diff
+-	db 0 ; callbacks
++	db 1 ; callbacks
++	callback MAPCALLBACK_NEWMAP, .UnsetClairScene
++
++.UnsetClairScene:
++	setmapscene DRAGONS_DEN_B1F, SCENE_DRAGONSDENB1F_NOTHING
++	end
+```
 
 
 ## Daisy's grooming doesn't always increase happiness