From e3d30602d9ee7dc9cabde93e1f1a505788f69803 Mon Sep 17 00:00:00 2001 From: ghoulslash Date: Thu, 12 Aug 2021 01:29:52 -0400 Subject: [PATCH] record item effect with trick --- src/battle_script_commands.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index 99d83f8f4c..eaa0e4f63b 100644 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -11302,6 +11302,9 @@ static void Cmd_tryswapitems(void) // trick gBattleMons[gBattlerAttacker].item = 0; gBattleMons[gBattlerTarget].item = oldItemAtk; + + RecordItemEffectBattle(gBattlerAttacker, 0); + RecordItemEffectBattle(gBattlerTarget, ItemId_GetHoldEffect(oldItemAtk)); gActiveBattler = gBattlerAttacker; BtlController_EmitSetMonData(0, REQUEST_HELDITEM_BATTLE, 0, 2, newItemAtk);