summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xengine/battle/core.asm4
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/battle/core.asm b/engine/battle/core.asm
index 0c506e2b..64a8d44e 100755
--- a/engine/battle/core.asm
+++ b/engine/battle/core.asm
@@ -1096,7 +1096,9 @@ RemoveFaintedPlayerMon: ; 3c741 (f:4741)
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