aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVortyne <104168801+Vortyne@users.noreply.github.com>2025-09-03 11:59:22 -0400
committerGitHub <noreply@github.com>2025-09-03 11:59:22 -0400
commit8da7deb893a29683614326b34e5257b222734fac (patch)
tree035461d12e6a7a3b65de4b6f9e7851fc7a8abdfc
parentLabel and constant cleanup (#528) (diff)
downloadpokeyellow-8da7deb893a29683614326b34e5257b222734fac.tar.gz
pokeyellow-8da7deb893a29683614326b34e5257b222734fac.tar.xz
pokeyellow-8da7deb893a29683614326b34e5257b222734fac.zip
Update comment for clarity (#529)
Actually copies from battle struct to party struct to make HP and status changes to a pokemon permanent
-rw-r--r--engine/battle/core.asm3
1 files changed, 2 insertions, 1 deletions
diff --git a/engine/battle/core.asm b/engine/battle/core.asm
index 296f9019..6285a330 100644
--- a/engine/battle/core.asm
+++ b/engine/battle/core.asm
@@ -1794,7 +1794,8 @@ AnimateRetreatingPlayerMon:
lb bc, 7, 7
jp ClearScreenArea
-; reads player's current mon's HP into wBattleMonHP
+; Copies player's current pokemon's current HP and status into the party
+; struct data so it stays after battle or switching
ReadPlayerMonCurHPAndStatus:
ld a, [wPlayerMonNumber]
ld hl, wPartyMon1HP