2013-12-01 11:19:57 -08:00
|
|
|
BattleCommand58: ; 376c2
|
|
|
|
; perishsong
|
|
|
|
|
|
|
|
|
|
|
|
ld hl, PlayerSubStatus1
|
|
|
|
ld de, EnemySubStatus1
|
|
|
|
bit SUBSTATUS_PERISH, [hl]
|
|
|
|
jr z, .ok
|
|
|
|
|
|
|
|
ld a, [de]
|
|
|
|
bit SUBSTATUS_PERISH, a
|
|
|
|
jr nz, .failed
|
|
|
|
|
|
|
|
.ok
|
|
|
|
bit SUBSTATUS_PERISH, [hl]
|
|
|
|
jr nz, .enemy
|
|
|
|
|
|
|
|
set SUBSTATUS_PERISH, [hl]
|
|
|
|
ld a, 4
|
|
|
|
ld [PlayerPerishCount], a
|
|
|
|
|
|
|
|
.enemy
|
|
|
|
ld a, [de]
|
|
|
|
bit SUBSTATUS_PERISH, a
|
|
|
|
jr nz, .done
|
|
|
|
|
|
|
|
set SUBSTATUS_PERISH, a
|
|
|
|
ld [de], a
|
|
|
|
ld a, 4
|
|
|
|
ld [EnemyPerishCount], a
|
|
|
|
|
|
|
|
.done
|
2014-01-01 05:09:15 -08:00
|
|
|
call AnimateCurrentMove
|
2013-12-01 11:19:57 -08:00
|
|
|
ld hl, StartPerishText
|
|
|
|
jp StdBattleTextBox
|
|
|
|
|
|
|
|
.failed
|
2014-01-01 05:09:15 -08:00
|
|
|
call AnimateFailedMove
|
2013-12-01 11:19:57 -08:00
|
|
|
jp PrintButItFailed
|
|
|
|
; 376f8
|