Document Return/Frustration bug and its fix (#872)

Co-authored-by: Rangi <35663410+Rangi42@users.noreply.github.com>
This commit is contained in:
Idain
2022-01-24 21:48:21 -04:00
committed by GitHub
parent 1dc88cb585
commit e949477089
2 changed files with 50 additions and 3 deletions

View File

@@ -1,13 +1,12 @@
BattleCommand_FrustrationPower:
; frustrationpower
push bc
ld hl, wBattleMonHappiness
ldh a, [hBattleTurn]
and a
jr z, .got_happiness
jr z, .ok
ld hl, wEnemyMonHappiness
.got_happiness
.ok
ld a, $ff
sub [hl]
ldh [hMultiplicand + 2], a