Kitt said:Oh, that makes sense. Do shades count as still having units? I mean, if not couldn't you build a few and stall a game you were losing by hiding them off somwhere?
MakeInvisible
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Ghost Blanket
Actions
Unit - Add Ghost to (Target unit of ability being cast)
Wait 5.00 seconds
Unit - Remove Ghost from (Target unit of ability being cast)
Unit Group - Pick every unit in (Units within 1000.00 of (Position of (Casting unit)) matching ((((Matching unit) is A ground unit) Equal to True) and (((Owner of (Casting unit)) is an ally of (Owner of (Matching unit))) Equal to True))) and do (Actions)
Loop - Actions
Loop - Actions
Unit - Add Wind Walk to (Picked unit)
Unit - Order (Picked unit) to Orc Blademaster - Wind Walk
Unit - Remove Wind Walk from (Picked unit)
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 in (Region centered at (Position of (Triggering unit)) with size (10000.00, 10000.00)) matching ((Owner of (Picked unit)) Equal to (Triggering player))) 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)
Then - Actions
Unit - Add Ghost to (Picked unit)
Set TotalUnitsAffected = (TotalUnitsAffected + 1)
Set UnitsAffected[TotalUnitsAffected] = (Picked unit)
Else - Actions
Do nothing
Wait 5.00 seconds
For each (Integer UnitsAffectedLoop) from 1 to TotalUnitsAffected, do (Actions)
Loop - Actions
Unit - Remove Ghost from UnitsAffected[UnitsAffectedLoop]