papermario/src/code_1967B0.c
Ethan Roseman 0f530e12aa 5 mo
2020-11-19 19:58:41 -05:00

22 lines
557 B
C

#include "common.h"
INCLUDE_ASM(s32, "code_1967B0", LoadItemScript);
INCLUDE_ASM(s32, "code_1967B0", LoadFreeItemScript);
ApiStatus LoadMoveScript(ScriptInstance* script, s32 isInitialCall) {
BattleStatus* battleStatus = BATTLE_STATUS;
s32* moveScript = gMoveScriptTable[battleStatus->selectedMoveID];
dma_copy(moveScript[0], moveScript[1], moveScript[2]);
script->varTable[0] = moveScript[3];
deduct_current_move_fp();
if (gBattleStatus.flags2 & 0x8000000) {
enable_player_blur();
}
return ApiStatus_DONE2;
}