fix(Core/Battlegrounds): Remove siege damage buffs on node assault in IoC (#25155)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Andrew 2026-03-28 19:20:23 -03:00 committed by GitHub
parent a19c4f9476
commit 3fa012f5ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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