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

23 lines
667 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:
CheckSubstitute BATTLER_CATEGORY_DEFENDER, _015
CompareMonDataToValue OPCODE_FLAG_NOT, BATTLER_CATEGORY_DEFENDER, BMON_DATA_STATUS, STATUS_SLEEP, _015
UpdateVar OPCODE_SET, BSCRIPT_VAR_SIDE_EFFECT_FLAGS_INDIRECT, MOVE_SIDE_EFFECT_ON_HIT|MOVE_SUBSCRIPT_PTR_DREAM_EATER
CalcCrit
CalcDamage
End
_015:
PrintAttackMessage
Wait
WaitButtonABTime 30
// {0} wasnt affected!
PrintMessage msg_0197_00060, TAG_NICKNAME, BATTLER_CATEGORY_DEFENDER
Wait
WaitButtonABTime 30
UpdateVar OPCODE_FLAG_ON, BSCRIPT_VAR_MOVE_STATUS_FLAGS, MOVE_STATUS_NO_MORE_WORK
End