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

18 lines
538 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_MOVE_STATUS_FLAGS, MOVE_STATUS_MISSED|MOVE_STATUS_SEMI_INVULNERABLE, _018
TrySpite _018
Call BATTLE_SUBSCRIPT_ATTACK_MESSAGE_AND_ANIMATION
// It reduced the PP of {0}s {1} by {2}!
PrintMessage pl_msg_00000368_00398, TAG_NICKNAME_MOVE_NUMBER, BTLSCR_DEFENDER, BTLSCR_MSG_TEMP, BTLSCR_MSG_TEMP
Wait
WaitButtonABTime 30
End
_018:
UpdateVar OPCODE_FLAG_ON, BTLVAR_MOVE_STATUS_FLAGS, MOVE_STATUS_FAILED
End