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:
parent
a19c4f9476
commit
3fa012f5ef
1 changed files with 7 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue