pokeplatinum/res/battle/scripts/subscripts/subscript_hit_substitute.s
2024-07-16 12:01:40 -07:00

30 lines
853 B
ArmAsm
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "macros/btlcmd.inc"
.data
_000:
CompareVarToValue OPCODE_FLAG_SET, BTLVAR_BATTLE_CTX_STATUS, SYSCTL_SKIP_SPRITE_BLINK, _009
PlayMoveHitSound BTLSCR_MSG_TEMP
FlickerMon BTLSCR_MSG_TEMP
Wait
_009:
// The substitute took damage for {0}!
PrintMessage pl_msg_00000368_00354, TAG_NICKNAME, BTLSCR_MSG_TEMP
Wait
WaitButtonABTime 30
CompareMonDataToValue OPCODE_FLAG_SET, BTLSCR_MSG_TEMP, BATTLEMON_VOLATILE_STATUS, VOLATILE_CONDITION_SUBSTITUTE, _040
PlayBattleAnimation BTLSCR_MSG_TEMP, BATTLE_ANIMATION_SUBSTITUTE_OUT
Wait
RestoreSprite BTLSCR_MSG_TEMP
Wait
PlayBattleAnimation BTLSCR_MSG_TEMP, BATTLE_ANIMATION_SUB_IN
Wait
// {0}s substitute faded!
PrintMessage pl_msg_00000368_00357, TAG_NICKNAME, BTLSCR_MSG_TEMP
Wait
WaitButtonABTime 30
_040:
End