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