mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-29 05:11:55 +01:00
Scripts/VioletHold: Limit the number of current summons before the waves start
(cherry picked from commit 54e30d4eba)
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user