Could anyone help me which part of this trigger that cause lag?
-
Naga Spawn
-

Events
-


Time - Every 90.00 seconds of game time
-
-

Conditions
-


(Temple of Tides 0053 <gen> is alive) Equal to True
-
-

Actions
-


Set Naga_Group[2] = (Units owned by Player 12 (Brown) matching ((((Matching unit) is A structure) Equal to False) and (((Matching unit) is A Hero) Equal to False)))
-


Unit Group - Pick every unit in Naga_Group[2] and do (Unit - Remove (Picked unit) from the game)
-


Set Naga_Int[1] = (Random integer number between 1 and 2)
-


Set Naga_Int[2] = (Random integer number between 1 and 4)
-


Set Naga_Point[1] = (Center of Naga Spawn <gen>)
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




Naga_Int[1] Equal to 1
-
-



Then - Actions
-




Unit - Create 5 Mur'gul Reaver for Player 12 (Brown) at Naga_Point[1] facing Default building facing degrees
-




Unit - Create 3 Naga Myrmidon for Player 12 (Brown) at Naga_Point[1] facing Default building facing degrees
-




Unit - Create 2 Naga Royal Guard for Player 12 (Brown) at Naga_Point[1] facing Default building facing degrees
-
-



Else - Actions
-
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




Naga_Int[1] Equal to 2
-
-



Then - Actions
-




Unit - Create 3 Naga Siren for Player 12 (Brown) at Naga_Point[1] facing Default building facing degrees
-




Unit - Create 4 Snap Dragon for Player 12 (Brown) at Naga_Point[1] facing Default building facing degrees
-




Unit - Create 2 Dragon Turtle for Player 12 (Brown) at Naga_Point[1] facing Default building facing degrees
-




Unit - Create 1 Ancient Hydra for Player 12 (Brown) at Naga_Point[1] facing Default building facing degrees
-
-



Else - Actions
-
-


Set Naga_Group[1] = (Units in Naga Spawn <gen> owned by Player 12 (Brown))
-


If (Naga_Int[2] Equal to 1) then do (Set Naga_Point[2] = (Center of Human <gen>)) else do (Do nothing)
-


If (Naga_Int[2] Equal to 2) then do (Set Naga_Point[2] = (Center of Orc <gen>)) else do (Do nothing)
-


If (Naga_Int[2] Equal to 3) then do (Set Naga_Point[2] = (Center of Undead <gen>)) else do (Do nothing)
-


If (Naga_Int[2] Equal to 4) then do (Set Naga_Point[2] = (Center of Night Elf <gen>)) else do (Do nothing)
-


Unit Group - Pick every unit in Naga_Group[1] and do (Unit - Order (Picked unit) to Attack-Move To Naga_Point[2])
-


Custom script: call RemoveLocation(udg_Naga_Point[1])
-


Custom script: call RemoveLocation(udg_Naga_Point[2])
-


Custom script: call DestroyGroup(udg_Naga_Group[1])
-


Custom script: call DestroyGroup(udg_Naga_Group[2])
-
-








