pokeheartgold/files/battledata/script/effect_script/effect_script_0170.s
Adrienn Tindall f3aac8c968 am dum
2024-02-25 21:16:46 -05:00

18 lines
512 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, BSCRIPT_VAR_PHYSICAL_DAMAGE, 0, _016
CompareVarToValue OPCODE_NEQ, BSCRIPT_VAR_SPECIAL_DAMAGE, 0, _016
UpdateVar OPCODE_SET, BSCRIPT_VAR_MOVE_EFFECT_CHANCE, 1
CalcCrit
CalcDamage
End
_016:
UpdateVar OPCODE_FLAG_ON, BSCRIPT_VAR_MOVE_STATUS_FLAGS, MOVE_STATUS_LOST_FOCUS
// {0} lost its focus and couldnt move!
BufferMessage msg_0197_00600, TAG_NICKNAME, BATTLER_CATEGORY_ATTACKER
End