diff options
author | SnapperRy <snapperryen@gmail.com> | 2016-10-04 19:04:11 +0200 |
---|---|---|
committer | joschiwald <joschiwald.trinity@gmail.com> | 2017-03-05 01:35:15 +0100 |
commit | 0aa3aeebae61fa352a7cb22c33b3954e80a4a6d7 (patch) | |
tree | 5a3dd5a17ffd3652fd7901c4831b583c154ee1b4 /src | |
parent | 1536a920036a86e52fd5e0d03ab0b5be9531edd9 (diff) |
Core/Wintergrasp: properly set and remove GO_FLAG_NOT_SELECTABLE from the Wintergrasp Relic, allowing the attacking faction to capture it.
(cherry picked from commit 63215dd15a740b9182a518bb5588ce69153f4e35)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Battlefield/Zones/BattlefieldWG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Battlefield/Zones/BattlefieldWG.cpp b/src/server/game/Battlefield/Zones/BattlefieldWG.cpp index fed93e9951c..ff6476bc06d 100644 --- a/src/server/game/Battlefield/Zones/BattlefieldWG.cpp +++ b/src/server/game/Battlefield/Zones/BattlefieldWG.cpp @@ -666,7 +666,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 @@ -1621,7 +1621,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; |