Merge pull request #2187 from LOuroboros/patch-4

Updated Cmd_handleballthrow
This commit is contained in:
ExpoSeed 2022-07-16 03:26:10 -05:00 committed by GitHub
commit 61f2011b36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13586,7 +13586,7 @@ static void Cmd_handleballthrow(void)
else else
catchRate = gBaseStats[gBattleMons[gBattlerTarget].species].catchRate; catchRate = gBaseStats[gBattleMons[gBattlerTarget].species].catchRate;
#ifdef POKEMON_EXPANSION #if defined POKEMON_EXPANSION && defined ITEM_EXPANSION
if (gBaseStats[gBattleMons[gBattlerTarget].species].flags & FLAG_ULTRA_BEAST) if (gBaseStats[gBattleMons[gBattlerTarget].species].flags & FLAG_ULTRA_BEAST)
{ {
if (gLastUsedItem == ITEM_BEAST_BALL) if (gLastUsedItem == ITEM_BEAST_BALL)
@ -13764,7 +13764,7 @@ static void Cmd_handleballthrow(void)
#endif #endif
} }
#ifdef POKEMON_EXPANSION #if defined POKEMON_EXPANSION && defined ITEM_EXPANSION
} }
#endif #endif