Hi, I was wondering if there was a way to optimize my trigger. Basically what I'm trying to achieve is a blizzard spell that does periodic damage, whilst slowing the enemies inside the aoe. I feel like there's a better method to the dummies casting frost nova and cleaning them but I can't think of any. Any GUI methods would be greatly appreciated as I have 0 clue on how to use JASS. Cheers
-
Blizzard
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Blizzard
-
-

Actions
-


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



If - Conditions
-



Then - Actions
-




Set VariableSet Emilia = (Triggering unit)
-




Set VariableSet EmiliaINT = (Real((Intelligence of Emilia (Include bonuses))))
-




Unit - Create 1 EmiliaBlizzardDummy for (Owner of Emilia) at (Target point of ability being cast) facing Default building facing degrees
-




Set VariableSet BlizzardDummy = (Last created unit)
-




Unit - Add a 15.00 second Generic expiration timer to BlizzardDummy
-




Set VariableSet BlizzardCastPoint = (Units within 600.00 of (Position of BlizzardDummy).)
-




Trigger - Turn on BlizzardDMG <gen>
-




Wait 15.00 seconds
-




Trigger - Turn off BlizzardDMG <gen>
-




Custom script: call DestroyGroup(udg_BlizzardCastPoint)
-
-



Else - Actions
-
-
-
-
BlizzardDMG
-

Events
-


Time - Every 0.25 seconds of game time
-
-

Conditions
-

Actions
-


Set VariableSet BlizzardCastPoint = (Units within 600.00 of (Position of BlizzardDummy).)
-


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



If - Conditions
-



Then - Actions
-




Unit Group - Pick every unit in BlizzardCastPoint and do (Actions)
-





Loop - Actions
-






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







If - Conditions
-








((Picked unit) belongs to an enemy of (Owner of Emilia).) Equal to True
-








((Picked unit) is invulnerable) Equal to False
-








((Picked unit) is A structure) Equal to False
-
-







Then - Actions
-








Unit - Create 1 SlowNovaDummy for (Owner of Emilia) at (Position of BlizzardDummy) facing Default building facing degrees
-








Set VariableSet BlizzardDummy = (Last created unit)
-








Unit - Add a 0.26 second Generic expiration timer to BlizzardDummy
-








Unit - Add DummySlowFrostNova to BlizzardDummy
-








Unit - Cause Emilia to damage (Picked unit), dealing (EmiliaINT / 5.00) damage of attack type Spells and damage type Normal
-








Unit - Order BlizzardDummy to Undead Lich - Frost Nova (Picked unit)
-








Custom script: call DestroyGroup(udg_BlizzardCastPoint)
-
-







Else - Actions
-








Do nothing
-
-
-
-
-
-



Else - Actions
-
-
-
-
cleanup
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


(Unit-type of (Dying unit)) Equal to SlowNovaDummy
-
-

Actions
-


Unit - Remove (Dying unit) from the game
-
-



