aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLopin <davca.hr@seznam.cz>2011-08-24 21:53:00 +0200
committerLopin <davca.hr@seznam.cz>2011-08-24 21:53:00 +0200
commit6758056dda84c74a47478b80d2175899ebdd51f5 (patch)
treefcc114f309f6176f4173194af4d5e8eb8fa4f085 /src
parentfd500ba2571a3e861ec1e211d1ce9f7ba629cd9f (diff)
Core/Achievements: Fixed Defense of the Ancients in SotA
Diffstat (limited to 'src')
-rwxr-xr-xsrc/server/game/Battlegrounds/Zones/BattlegroundSA.cpp2
-rwxr-xr-xsrc/server/game/Battlegrounds/Zones/BattlegroundSA.h3
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:
/**