mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Scripts/MH: Grove Warden will now despawn after 3 minutes to avoid them to stack on each other
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user