papermario/src/code_1967B0.c
Ethan Roseman 9e9ce5bb29 👀
2020-10-16 14:49:18 -04:00

22 lines
558 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 = &gBattleStatus;
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;
}