From 3fa012f5ef182108fdb0572165d697d23e545be3 Mon Sep 17 00:00:00 2001 From: Andrew <47818697+Nyeriah@users.noreply.github.com> Date: Sat, 28 Mar 2026 19:20:23 -0300 Subject: [PATCH] fix(Core/Battlegrounds): Remove siege damage buffs on node assault in IoC (#25155) Co-authored-by: Claude Opus 4.6 --- src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp b/src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp index d4924f7f2..2d43dbdf4 100644 --- a/src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp +++ b/src/server/game/Battlegrounds/Zones/BattlegroundIC.cpp @@ -745,6 +745,13 @@ void BattlegroundIC::HandleContestedNodes(ICNodePoint* nodePoint) (*itr)->SetUnitFlag(UNIT_FLAG_NOT_SELECTABLE); } } + else if (nodePoint->nodeType == NODE_TYPE_REFINERY || nodePoint->nodeType == NODE_TYPE_QUARRY) + { + // nodePoint->faction is the assaulting team (set before this call); + // remove the siege damage buff from the team that previously controlled the node. + uint32 auraSpellId = (nodePoint->nodeType == NODE_TYPE_REFINERY) ? SPELL_OIL_REFINERY : SPELL_QUARRY; + RemoveAuraOnTeam(auraSpellId, GetOtherTeamId(nodePoint->faction)); + } else if (nodePoint->nodeType == NODE_TYPE_WORKSHOP) { DelObject(BG_IC_GO_SEAFORIUM_BOMBS_1);