aboutsummaryrefslogtreecommitdiff
path: root/src/game/BattleGround.cpp
diff options
context:
space:
mode:
authorLiberate <none@none>2010-05-31 23:01:47 +0200
committerLiberate <none@none>2010-05-31 23:01:47 +0200
commitb02bde6d2ad2b214b91d122f11aa117b6c813116 (patch)
treec9ab17b76eea33b4a1b94bc22e2237a7c6cd259f /src/game/BattleGround.cpp
parenta623ccd5fad619ae44b52c7113fd4cd432c34a2a (diff)
*Fix: Strand of the Ancients.
- Massive Seaforium Charge (needs DB support for the spawns) - Demolishers are not attackable at the start - Demolishers spawn at the workshop if the graveyard is taken (The spawn locations aren't official yet) - Demolishers spawn immediately after being destroyed To make SotA perfect, it needs a lot of DB support. - Seaforium Bomb spawn locations - Set speed_run to 0 of the Cannons. --HG-- branch : trunk
Diffstat (limited to 'src/game/BattleGround.cpp')
-rw-r--r--src/game/BattleGround.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/BattleGround.cpp b/src/game/BattleGround.cpp
index df58b643294..389fdc25408 100644
--- a/src/game/BattleGround.cpp
+++ b/src/game/BattleGround.cpp
@@ -1485,7 +1485,7 @@ void BattleGround::SpawnBGObject(uint32 type, uint32 respawntime)
}
}
-Creature* BattleGround::AddCreature(uint32 entry, uint32 type, uint32 teamval, float x, float y, float z, float o, uint32 /*respawntime*/)
+Creature* BattleGround::AddCreature(uint32 entry, uint32 type, uint32 teamval, float x, float y, float z, float o, uint32 respawntime)
{
Map * map = GetBgMap();
if (!map)
@@ -1514,6 +1514,9 @@ Creature* BattleGround::AddCreature(uint32 entry, uint32 type, uint32 teamval, f
map->Add(pCreature);
m_BgCreatures[type] = pCreature->GetGUID();
+ if (respawntime)
+ pCreature->SetRespawnDelay(respawntime);
+
return pCreature;
}
/*