diff options
author | jiangzhengwenjz <jiangzhengwenjzw@qq.com> | 2019-10-21 03:07:59 +0800 |
---|---|---|
committer | jiangzhengwenjz <jiangzhengwenjzw@qq.com> | 2019-10-21 03:08:10 +0800 |
commit | b0400ef6ba6e6cf49ad2bdc19a29eb2abef26701 (patch) | |
tree | 60276257dd8cccfa1278bb0302cf948ae8ab79fa /src/battle_script_commands.c | |
parent | e48725d9b54ed9f71f65c3ba5577cffa8f4887d1 (diff) |
battle_setup funcs
Diffstat (limited to 'src/battle_script_commands.c')
-rw-r--r-- | src/battle_script_commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index 46120085a..aec6eec8e 100644 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -48,6 +48,7 @@ #include "constants/abilities.h" #include "constants/pokemon.h" #include "constants/trainers.h" +#include "constants/map_types.h" #define DEFENDER_IS_PROTECTED ((gProtectStructs[gBattlerTarget].protected) && (gBattleMoves[gCurrentMove].flags & FLAG_PROTECT_AFFECTED)) @@ -9451,7 +9452,6 @@ static void atkEF_handleballthrow(void) catchRate = gBattleStruct->safariCatchFactor * 1275 / 100; else catchRate = gBaseStats[gBattleMons[gBattlerTarget].species].catchRate; - if (gLastUsedItem > ITEM_SAFARI_BALL) { switch (gLastUsedItem) |