Code
Cast
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Frost
Actions
Set F_Caster = (Triggering unit)
Set F_Owner = (Triggering Player)
Set F_Level = (Level of Frost for F_Caster)
Set F_Target = (Target unit of ability being cast)
Unit - Cause F_Caster to damage F_Target, dealing F_Damage[F_Level] damage of attack type Spells and damage type Cold
Special Effect - Create a special effect attached to the origin of F_Target using F_Effect
Special Effect - Destroy (Last created special effect)
Set TempPoint = (Position of F_Target)
-------- Creating Areas --------
Set F_Region = (Region centered at TempPoint with size (500.00, 500.00))
For each (Integer TempInteger) from 1 to F_Dummies, do (Actions)
Loop - Actions
Set TempPoint2 = (Random point in F_Region)
Unit - Create 1 Dummy (Attack) for F_Owner at TempPoint facing (Angle from TempPoint to TempPoint2) degrees
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
Unit - Order (Last created unit) to Attack Ground TempPoint2
Custom script: call RemoveLocation(udg_TempPoint2)
Custom script: call RemoveLocation(udg_TempPoint)
-------- Nulling Variables --------
Set TempInteger = 0
Set F_Caster = No unit
Set F_Owner = Neutral Passive
Set F_Level = 0
Set F_Target = No unit