From 54e30d4ebae11e0c8da77af6104a3cc0a6a11365 Mon Sep 17 00:00:00 2001 From: jackpoz Date: Sat, 20 Jun 2020 14:12:47 +0200 Subject: Scripts/VioletHold: Limit the number of current summons before the waves start --- src/server/scripts/Northrend/VioletHold/violet_hold.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/server/scripts') diff --git a/src/server/scripts/Northrend/VioletHold/violet_hold.cpp b/src/server/scripts/Northrend/VioletHold/violet_hold.cpp index 5b753c6e8bd..dfdfecab401 100644 --- a/src/server/scripts/Northrend/VioletHold/violet_hold.cpp +++ b/src/server/scripts/Northrend/VioletHold/violet_hold.cpp @@ -806,8 +806,12 @@ class npc_violet_hold_teleportation_portal_intro : public CreatureScript _scheduler.Schedule(Seconds(15), [this](TaskContext task) { - uint32 entry = RAND(NPC_AZURE_INVADER_1, NPC_AZURE_MAGE_SLAYER_1, NPC_AZURE_BINDER_1); - DoSummon(entry, me, 2.0f, 20000, TEMPSUMMON_DEAD_DESPAWN); + // Limit the number of current summons + if (_summons.size() < 3) + { + uint32 entry = RAND(NPC_AZURE_INVADER_1, NPC_AZURE_MAGE_SLAYER_1, NPC_AZURE_BINDER_1); + DoSummon(entry, me, 2.0f, 20000, TEMPSUMMON_DEAD_DESPAWN); + } task.Repeat(); }); -- cgit v1.2.3