From cbf0a6704b79f9d12d92ab0d91014e7ce9efde82 Mon Sep 17 00:00:00 2001 From: BuffelSaft Date: Sun, 1 May 2022 12:54:33 +1200 Subject: [PATCH] Set Sticky Web user to Court Change user This is for Mirror Armor to track the current user of Sticky Web/the mon that caused the stat drop. --- src/battle_script_commands.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/battle_script_commands.c b/src/battle_script_commands.c index 01944f5084..d6edb0ab2d 100644 --- a/src/battle_script_commands.c +++ b/src/battle_script_commands.c @@ -7703,7 +7703,9 @@ static bool32 CourtChangeSwapSideStatuses(void) UPDATE_COURTCHANGED_BATTLER(auroraVeilBattlerId); UPDATE_COURTCHANGED_BATTLER(tailwindBattlerId); UPDATE_COURTCHANGED_BATTLER(luckyChantBattlerId); - gBattleStruct->stickyWebUser ^= BIT_SIDE; + + // For Mirror Armor only + gBattleStruct->stickyWebUser = gBattlerAttacker; // Track which side originally set the Sticky Web SWAP(sideTimerPlayer->stickyWebBattlerSide, sideTimerOpp->stickyWebBattlerSide, temp);