Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Lightning Shield Spell

Events

Conditions

Actions


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



If - Conditions




((Triggering unit) has buff Lightning Shield (Hero)) Equal to True



Then - Actions




Set Attacker_Position = (Position of (Damage source))




Unit - Cause (Triggering unit) to damage (Damage source) dealing 400.00 damage of attack type Spells and Damage type Normal




Special Effect - Create a special effect attached to the origin of (Damage source) using Abilities\Spells\Orc\Purge\PurgeBuffTarget.mdl




Special Effect - Destroy (Last created special effect)




Custom script: call RemoveLocation(udg_Attacker_Position)



Else - Actions
Lightning Shield Spell

Events

Conditions

Actions


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



If - Conditions




((Triggering unit) has buff Lightning Shield (Hero)) Equal to True



Then - Actions




Unit - Cause (Triggering unit) to damage (Damage source) dealing 400.00 damage of attack type Spells and Damage type Normal




Special Effect - Create a special effect attached to the origin of (Damage source) using Abilities\Spells\Orc\Purge\PurgeBuffTarget.mdl




Special Effect - Destroy (Last created special effect)



Else - Actions
Never use this. Use Triggering Unit, instead. Damage source will not work for Unit- A unit is attacked event.Attacked Unit
Why don't you just make a spell based off Thorns?
Maybe base it off Lightning Shield, but change the buff to Thorns?
