mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 04:04:17 +01:00
fixed Fling
This commit is contained in:
parent
542a0f07b4
commit
2ffff788b4
@ -622,6 +622,7 @@ BattleScript_EffectFlingConsumeBerry:
|
||||
restorebattleritem BS_TARGET
|
||||
BattleScript_FlingEnd:
|
||||
tryfaintmon BS_TARGET
|
||||
trysymbiosis
|
||||
goto BattleScript_MoveEnd
|
||||
|
||||
BattleScript_FlingFlameOrb:
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user