aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2020-06-20 14:12:47 +0200
committerjackpoz <giacomopoz@gmail.com>2020-06-20 14:12:47 +0200
commit54e30d4ebae11e0c8da77af6104a3cc0a6a11365 (patch)
tree76f466bd88c12cb240d34a44134d5527fec86a57
parent4e1dbd1cf808c9cf1f310b6d498f7e304dfb4147 (diff)
Scripts/VioletHold: Limit the number of current summons before the waves start
-rw-r--r--src/server/scripts/Northrend/VioletHold/violet_hold.cpp8
1 files changed, 6 insertions, 2 deletions
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();
});