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:
@@ -745,6 +745,13 @@ void BattlegroundIC::HandleContestedNodes(ICNodePoint* nodePoint)
|
|||||||
(*itr)->SetUnitFlag(UNIT_FLAG_NOT_SELECTABLE);
|
(*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)
|
else if (nodePoint->nodeType == NODE_TYPE_WORKSHOP)
|
||||||
{
|
{
|
||||||
DelObject(BG_IC_GO_SEAFORIUM_BOMBS_1);
|
DelObject(BG_IC_GO_SEAFORIUM_BOMBS_1);
|
||||||
|
|||||||
Reference in New Issue
Block a user