comment defrost move effect asm

This commit is contained in:
yenatch 2013-09-08 22:30:10 -04:00
parent 7a1951528d
commit b4d37c675f

View File

@ -9457,22 +9457,30 @@ BattleCommand52: ; 37536
BattleCommand53: ; 37563 BattleCommand53: ; 37563
; defrost ; defrost
; Thaw the user.
ld a, BATTLE_VARS_STATUS ld a, BATTLE_VARS_STATUS
call GetBattleVarPair call GetBattleVarPair
bit 5, [hl] bit FRZ, [hl]
ret z ret z
res 5, [hl] res FRZ, [hl]
; Don't update the enemy's party struct in a wild battle.
ld a, [hBattleTurn] ld a, [hBattleTurn]
and a and a
jr z, .asm_37578 ; 37570 $6 jr z, .party
ld a, [IsInBattle] ld a, [IsInBattle]
dec a dec a
jr z, .asm_3757f ; 37576 $7 jr z, .done
.asm_37578
ld a, $20 .party
ld a, PartyMon1Status - PartyMon1
call UserPartyAttr call UserPartyAttr
res 5, [hl] res FRZ, [hl]
.asm_3757f
.done
call RefreshBattleHuds call RefreshBattleHuds
ld hl, WasDefrostedText ld hl, WasDefrostedText
jp StdBattleTextBox jp StdBattleTextBox