Scripts/VioletHold: Limit the number of current summons before the waves start

(cherry picked from commit 54e30d4eba)
This commit is contained in:
jackpoz
2020-06-20 14:12:47 +02:00
committed by Shauren
parent 07f42907c6
commit ebe183ea93

View File

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