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

23 lines
531 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_EQU, BTLVAR_CURRENT_MOVE, MOVE_FEINT, _015
IfTurnFlag BTLSCR_DEFENDER, TURN_FLAG_PROTECTING, 0, _022
// It broke through {0}s protection!
PrintMessage pl_msg_00000368_01243, TAG_NICKNAME, BTLSCR_DEFENDER
GoTo _019
_015:
// {0} fell for the feint!
PrintMessage pl_msg_00000368_01048, TAG_NICKNAME, BTLSCR_DEFENDER
_019:
Wait
WaitButtonABTime 30
_022:
SetTurnFlag BTLSCR_DEFENDER, TURN_FLAG_PROTECTING, 0
End