record item effect with trick
This commit is contained in:
parent
d218322b2c
commit
e3d30602d9
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue