2018-06-24 14:09:41 +00:00
|
|
|
BattleCommand_HealBell:
|
2018-01-26 16:36:00 +00:00
|
|
|
; healbell
|
|
|
|
|
|
|
|
ld a, BATTLE_VARS_SUBSTATUS1
|
|
|
|
call GetBattleVarAddr
|
|
|
|
res SUBSTATUS_NIGHTMARE, [hl]
|
2018-02-03 23:21:53 +00:00
|
|
|
ld de, wPartyMon1Status
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh a, [hBattleTurn]
|
2018-01-26 16:36:00 +00:00
|
|
|
and a
|
|
|
|
jr z, .got_status
|
2018-02-03 23:21:53 +00:00
|
|
|
ld de, wOTPartyMon1Status
|
2018-01-26 16:36:00 +00:00
|
|
|
.got_status
|
|
|
|
ld a, BATTLE_VARS_STATUS
|
|
|
|
call GetBattleVarAddr
|
|
|
|
xor a
|
|
|
|
ld [hl], a
|
|
|
|
ld h, d
|
|
|
|
ld l, e
|
|
|
|
ld bc, PARTYMON_STRUCT_LENGTH
|
|
|
|
ld d, PARTY_LENGTH
|
|
|
|
.loop
|
|
|
|
ld [hl], a
|
|
|
|
add hl, bc
|
|
|
|
dec d
|
|
|
|
jr nz, .loop
|
|
|
|
call AnimateCurrentMove
|
|
|
|
|
|
|
|
ld hl, BellChimedText
|
|
|
|
call StdBattleTextBox
|
|
|
|
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh a, [hBattleTurn]
|
2018-01-26 16:36:00 +00:00
|
|
|
and a
|
|
|
|
jp z, CalcPlayerStats
|
|
|
|
jp CalcEnemyStats
|