2018-06-24 07:09:41 -07:00
|
|
|
BattleCommand_HealBell:
|
2018-01-26 08:36:00 -08:00
|
|
|
; healbell
|
|
|
|
|
|
|
|
ld a, BATTLE_VARS_SUBSTATUS1
|
|
|
|
call GetBattleVarAddr
|
|
|
|
res SUBSTATUS_NIGHTMARE, [hl]
|
2018-02-03 15:21:53 -08:00
|
|
|
ld de, wPartyMon1Status
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh a, [hBattleTurn]
|
2018-01-26 08:36:00 -08:00
|
|
|
and a
|
|
|
|
jr z, .got_status
|
2018-02-03 15:21:53 -08:00
|
|
|
ld de, wOTPartyMon1Status
|
2018-01-26 08:36:00 -08: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
|
2019-04-08 05:15:10 -07:00
|
|
|
call StdBattleTextbox
|
2018-01-26 08:36:00 -08:00
|
|
|
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh a, [hBattleTurn]
|
2018-01-26 08:36:00 -08:00
|
|
|
and a
|
|
|
|
jp z, CalcPlayerStats
|
|
|
|
jp CalcEnemyStats
|