Scripts/MH: Grove Warden will now despawn after 3 minutes to avoid them to stack on each other

This commit is contained in:
Ovahlord
2019-05-10 03:16:23 +02:00
parent 4ca383ea7a
commit 101a31bc22

View File

@@ -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();