summaryrefslogtreecommitdiff
path: root/src/battle_script_commands.c
diff options
context:
space:
mode:
authorgolem galvanize <golemgalvanize@github.com>2018-02-12 14:00:47 -0500
committergolem galvanize <golemgalvanize@github.com>2018-02-12 14:00:47 -0500
commit4ac064bbaf54966082a860e6b6723c5ec654c436 (patch)
treeb419b2bb1a7fe7d17c440d58e5000c21e832386c /src/battle_script_commands.c
parentf81c52b56e865d8ecc753a69a31a5148548320a6 (diff)
parenta4787bc06a323071d32d3e0705e9cd39d9221452 (diff)
Merge branch 'master' of https://github.com/pret/pokeemerald into decompile_item_menu
Diffstat (limited to 'src/battle_script_commands.c')
-rw-r--r--src/battle_script_commands.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c
index 4d40d83a8..75f05e86f 100644
--- a/src/battle_script_commands.c
+++ b/src/battle_script_commands.c
@@ -12,7 +12,6 @@
#include "constants/hold_effects.h"
#include "util.h"
#include "pokemon.h"
-#include "calculate_base_damage.h"
#include "random.h"
#include "battle_controllers.h"
#include "battle_interface.h"
@@ -32,7 +31,6 @@
#include "bg.h"
#include "string_util.h"
#include "pokemon_icon.h"
-#include "pokemon_item_effects.h"
#include "m4a.h"
#include "mail.h"
#include "event_data.h"
@@ -3649,7 +3647,7 @@ static void atk24(void)
}
}
#else
-__attribute__((naked))
+ASM_DIRECT
static void atk24(void)
{
asm("\n\
@@ -4529,7 +4527,7 @@ static void atk48_playstatchangeanimation(void)
}
}
#else
-__attribute__((naked))
+ASM_DIRECT
static void atk48_playstatchangeanimation(void)
{
asm("\n\
@@ -6882,8 +6880,7 @@ static void atk74_hpthresholds2(void)
static void atk75_useitemonopponent(void)
{
gBattlerInMenuId = gBattlerAttacker;
- ExecuteTableBasedItemEffect(&gEnemyParty[gBattlerPartyIndexes[gBattlerAttacker]], gLastUsedItem, gBattlerPartyIndexes[gBattlerAttacker], 0, 1);
-
+ PokemonUseItemEffects(&gEnemyParty[gBattlerPartyIndexes[gBattlerAttacker]], gLastUsedItem, gBattlerPartyIndexes[gBattlerAttacker], 0, 1);
gBattlescriptCurrInstr += 1;
}
@@ -9422,7 +9419,7 @@ static void atkC1_hiddenpowercalc(void)
}
#else
-__attribute__((naked))
+ASM_DIRECT
static void atkC1_hiddenpowercalc(void)
{
asm(".syntax unified\n\