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

18 lines
513 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_NEQ, BTLVAR_ATTACKER_PHYSICAL_DAMAGE_MASK, 0, _016
CompareVarToValue OPCODE_NEQ, BTLVAR_ATTACKER_SPECIAL_DAMAGE_MASK, 0, _016
UpdateVar OPCODE_SET, BTLVAR_MOVE_EFFECT_CHANCE, 1
CalcCrit
CalcDamage
End
_016:
UpdateVar OPCODE_FLAG_ON, BTLVAR_MOVE_STATUS_FLAGS, MOVE_STATUS_LOST_FOCUS
// {0} lost its focus and couldnt move!
BufferMessage pl_msg_00000368_00600, TAG_NICKNAME, BTLSCR_ATTACKER
End