diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/server/game/Battlegrounds/Zones/BattlegroundSA.cpp | 2 | ||||
-rwxr-xr-x | src/server/game/Battlegrounds/Zones/BattlegroundSA.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundSA.cpp b/src/server/game/Battlegrounds/Zones/BattlegroundSA.cpp index 7ce7498358b..d477096e8e6 100755 --- a/src/server/game/Battlegrounds/Zones/BattlegroundSA.cpp +++ b/src/server/game/Battlegrounds/Zones/BattlegroundSA.cpp @@ -50,6 +50,7 @@ void BattlegroundSA::Reset() for (uint8 i = 0; i <= 5; i++) GateStatus[i] = BG_SA_GATE_OK; ShipsStarted = false; + gateDestroyed = false; Status = BG_SA_WARMUP; } @@ -610,6 +611,7 @@ void BattlegroundSA::DestroyGate(Player* player, GameObject* go) if (uws) UpdateWorldState(uws, GateStatus[i]); bool rewardHonor = true; + gateDestroyed = true; switch(i) { case BG_SA_GREEN_GATE: diff --git a/src/server/game/Battlegrounds/Zones/BattlegroundSA.h b/src/server/game/Battlegrounds/Zones/BattlegroundSA.h index e404d350329..660e1327df5 100755 --- a/src/server/game/Battlegrounds/Zones/BattlegroundSA.h +++ b/src/server/game/Battlegrounds/Zones/BattlegroundSA.h @@ -484,6 +484,9 @@ class BattlegroundSA : public Battleground /// Update score board void UpdatePlayerScore(Player *Source, uint32 type, uint32 value, bool doAddHonor = true); + // Achievement Defense of the Ancients + bool gateDestroyed; + private: /** |