fixed Fling

This commit is contained in:
AgustinGDLV committed 2022-05-06 22:29:40 -07:00
1 parent 542a0f07b4
commit 2ffff788b4
2 files changed
+3 -1

No files matched your search

+1
View File
@@ -622,6 +622,7 @@ BattleScript_EffectFlingConsumeBerry:
restorebattleritem BS_TARGET
BattleScript_FlingEnd:
tryfaintmon BS_TARGET
trysymbiosis
goto BattleScript_MoveEnd
BattleScript_FlingFlameOrb:
+2 -1
View File
@@ -7066,6 +7066,7 @@ static bool32 TrySymbiosis(u32 battler, u32 itemId)
&& gBattleStruct->changedItems[battler] == ITEM_NONE
&& ItemId_GetHoldEffect(itemId) != HOLD_EFFECT_EJECT_BUTTON
&& ItemId_GetHoldEffect(itemId) != HOLD_EFFECT_EJECT_PACK
&& gCurrentMove != MOVE_FLING
&& SYMBIOSIS_CHECK(battler, ally))
{
BestowItem(ally, battler);
@@ -9607,7 +9608,7 @@ static void Cmd_various(void)
case VARIOUS_SWAP_SIDE_STATUSES:
CourtChangeSwapSideStatuses();
break;
case VARIOUS_TRY_SYMBIOSIS: //called by Bestow and Bug Bite, which have cases that don't call Cmd_removeitem.
case VARIOUS_TRY_SYMBIOSIS: //called by Bestow, Fling, and Bug Bite, which don't work with Cmd_removeitem.
if (SYMBIOSIS_CHECK(gActiveBattler, gActiveBattler ^ BIT_FLANK))
{
BestowItem(gActiveBattler ^ BIT_FLANK, gActiveBattler);