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.
This commit is contained in:
BuffelSaft 2022-05-01 12:54:33 +12:00
parent 746d9ea6c5
commit cbf0a6704b

View File

@ -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);