You want to do the DotA's Magnus ability, which is Reverse Polarity.
Here you go:
- Reverse Polarity
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Your Skill
- Actions
- Set TempTrigUnit = (Triggering unit)
- Set TempPoint = (Position of TempTrigUnit)
- Set TempUnitGroup = (Units within (War Stomp's Area of Effect) of TempPoint)
- Unit Group - Pick every unit in TempUnitGroup and do (Actions)
- Loop - Actions
- Set TempUnit = (Picked unit)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (TempUnit is A structure) Not equal to True
- (TempUnit is Magic Immune) Not equal to True
- (TempUnit is dead) Not equal to True
- (TempUnit belongs to an enemy of (Triggering player)) Not equal to True
- Then - Actions
- Unit - Move TempUnit instantly to TempPoint
- Else - Actions
- Custom script: call RemoveLocation(udg_TempPoint)
- Custom script: call DestroyGroup(udg_TempUnitGroup)