mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 08:55:32 +01:00
Core/Wintergrasp: properly set and remove GO_FLAG_NOT_SELECTABLE from the Wintergrasp Relic, allowing the attacking faction to capture it.
This commit is contained in:
@@ -665,7 +665,7 @@ void BattlefieldWG::OnBattleStart()
|
||||
// Update faction of relic, only attacker can click on
|
||||
relic->SetFaction(WintergraspFaction[GetAttackerTeam()]);
|
||||
// Set in use (not allow to click on before last door is broken)
|
||||
relic->SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_IN_USE);
|
||||
relic->SetFlag(GAMEOBJECT_FLAGS, GO_FLAG_IN_USE | GO_FLAG_NOT_SELECTABLE);
|
||||
m_titansRelicGUID = relic->GetGUID();
|
||||
}
|
||||
else
|
||||
@@ -1625,7 +1625,7 @@ void BfWGGameObjectBuilding::Destroyed()
|
||||
go->SetGoState(GO_STATE_ACTIVE);
|
||||
_wg->SetRelicInteractible(true);
|
||||
if (_wg->GetRelic())
|
||||
_wg->GetRelic()->RemoveFlag(GAMEOBJECT_FLAGS, GO_FLAG_IN_USE);
|
||||
_wg->GetRelic()->RemoveFlag(GAMEOBJECT_FLAGS, GO_FLAG_IN_USE | GO_FLAG_NOT_SELECTABLE);
|
||||
else
|
||||
TC_LOG_ERROR("bg.battlefield.wg", "Titan Relic not found.");
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user