MakeInvisible
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Ghost Blanket
Actions
Unit Group - Pick every unit in (Units within 500.00 of (Position of (Casting unit))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Picked unit) Not equal to (Triggering unit)
(Owner of (Picked unit)) Equal to (Owner of (Casting unit))
Then - Actions
Unit - Add Ghost to (Picked unit)
Set TotalUnitsAffected = (TotalUnitsAffected + 1)
Set UnitsAffected[TotalUnitsAffected] = (Picked unit)
Else - Actions
Do nothing
Wait 20.00 seconds
For each (Integer UnitsAffectedLoop) from 1 to TotalUnitsAffected, do (Actions)
Loop - Actions
Unit - Remove Ghost from UnitsAffected[UnitsAffectedLoop]