aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/ScriptedAI
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2016-09-26 12:49:32 +0200
committerAokromes <Aokromes@users.noreply.github.com>2016-09-26 12:49:32 +0200
commit4b990eb7d7fda3951e640d84a5c18c90366cd26b (patch)
tree59874b4834259bb34af01d2aa2db4ae4e3de8eef /src/server/game/AI/ScriptedAI
parent5d5753c8bc3a3ca9cd426c01eea9036f4416cd67 (diff)
[3.3.5] Azjol-Nerub rewrite
* Scripts/AzjolNerub: Complete rewrite. - Gatewatcher: - Trash now actually engages properly one by one - Fix trash spell casting - Add missing quotes - Hadronox: - Everything. Literally. - Anub'arak: - Fix add spawns - Fix impale - OK this might as well be "fix everything with every boss". Because that's pretty much what happened. - General hack cleanup * Update and rename 9999_99_99_99_AZJOLNERUB.sql to 2016_09_25_01_world.sql * Update and rename 2016_09_25_01_world.sql to 2016_09_25_02_world.sql * Rename 2016_09_25_02_world.sql to 2016_09_26_02_world.sql
Diffstat (limited to 'src/server/game/AI/ScriptedAI')
-rw-r--r--src/server/game/AI/ScriptedAI/ScriptedCreature.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/server/game/AI/ScriptedAI/ScriptedCreature.h b/src/server/game/AI/ScriptedAI/ScriptedCreature.h
index e310c954838..08cc4fa3960 100644
--- a/src/server/game/AI/ScriptedAI/ScriptedCreature.h
+++ b/src/server/game/AI/ScriptedAI/ScriptedCreature.h
@@ -89,6 +89,12 @@ public:
return storage_.size();
}
+ // Clear the underlying storage. This does NOT despawn the creatures - use DespawnAll for that!
+ void clear()
+ {
+ storage_.clear();
+ }
+
void Summon(Creature const* summon) { storage_.push_back(summon->GetGUID()); }
void Despawn(Creature const* summon) { storage_.remove(summon->GetGUID()); }
void DespawnEntry(uint32 entry);