shithub: pokered

Download patch

ref: c9b778fb008ebc845219a2b787ea6beb04ae29f8
parent: 507fcbd26979cb79fcb9b75a18b85f4c20487a63
author: YamaArashi <shadow962@live.com>
date: Fri Feb 6 23:23:34 EST 2015

documented bide bug

--- a/engine/battle/core.asm
+++ b/engine/battle/core.asm
@@ -1096,7 +1096,9 @@
 	ld [wd083], a
 	call WaitForSoundToFinish
 .skipWaitForSound
-	ld hl, wEnemyNumHits
+; bug? if the player mon faints while the enemy mon is using bide,
+; the accumulated damage is overwritten. xxx what values can [wd083] have here?
+	ld hl, wEnemyBideAccumulatedDamage
 	ld [hli], a
 	ld [hl], a
 	ld [wBattleMonStatus], a