From ebe183ea93173384b5a3d1e8b0a4124073a58d70 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 (cherry picked from commit 54e30d4ebae11e0c8da77af6104a3cc0a6a11365) --- src/server/scripts/Northrend/VioletHold/violet_hold.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/server/scripts/Northrend/VioletHold/violet_hold.cpp b/src/server/scripts/Northrend/VioletHold/violet_hold.cpp index a6b4c05471a..21185bc180a 100644 --- a/src/server/scripts/Northrend/VioletHold/violet_hold.cpp +++ b/src/server/scripts/Northrend/VioletHold/violet_hold.cpp @@ -807,8 +807,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