From 4b990eb7d7fda3951e640d84a5c18c90366cd26b Mon Sep 17 00:00:00 2001 From: Treeston Date: Mon, 26 Sep 2016 12:49:32 +0200 Subject: [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 --- src/server/game/AI/ScriptedAI/ScriptedCreature.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/server/game/AI/ScriptedAI') 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); -- cgit v1.2.3