From 101a31bc22ae472128c2a9eb9c42f2fbf5bf975d Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Fri, 10 May 2019 03:16:23 +0200 Subject: [PATCH] Scripts/MH: Grove Warden will now despawn after 3 minutes to avoid them to stack on each other --- src/server/scripts/Kalimdor/zone_mount_hyjal.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/scripts/Kalimdor/zone_mount_hyjal.cpp b/src/server/scripts/Kalimdor/zone_mount_hyjal.cpp index 7dc96c7614b..e1219df7106 100644 --- a/src/server/scripts/Kalimdor/zone_mount_hyjal.cpp +++ b/src/server/scripts/Kalimdor/zone_mount_hyjal.cpp @@ -553,13 +553,14 @@ struct npc_mh_raging_firestorm : public ScriptedAI } private: EventMap _events; - bool _allowWardenCombat; + bool _allowWardenCombat; void SummonGroveWarden() { uint8 spawnIndex = urand(0, 5); if (Creature* warden = DoSummon(NPC_GROVE_WARDEN, GroveWardenSummonPositions[spawnIndex], 20000)) { + warden->DespawnOrUnsummon(3min); warden->SetDisplayId(warden->GetCreatureTemplate()->Modelid1); Position waypointPos = GroveWardenWaypointPosition1; Position homePos = me->GetHomePosition();