For some reason when the trigger happens it leaves a sparkle on the floor which leaves me to believe that it may be leaking.
The concept is that i want the item to be able to proc certain abilities when a unit attacks and is holding it.
The concept is that i want the item to be able to proc certain abilities when a unit attacks and is holding it.
-
Thunderhammer
-
Events
-
Unit - A unit Is attacked
-
-
Conditions
-
((Attacking unit) is A Hero) Equal to (==) True
-
((Attacking unit) has an item of type |cff0000ffZervon the Shockhammer|r) Equal to (==) True
-
-
Actions
-
Set Prochammer = (Random integer number between 1 and 100)
-
Set Hammerholder = (Attacking unit)
-
Set Hammertarget = (Attacked unit)
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Prochammer Less than (<) 11
-
-
Then - Actions
-
Set shockhammerpoint = (Position of (Attacking unit))
-
Unit - Create 1 Thunderhammer Proc for (Owner of Hammerholder) at shockhammerpoint facing Default building facing (270.0) degrees
-
Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning Hammertarget
-
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
-
Custom script: call RemoveLocation( udg_shockhammerpoint )
-
-
Else - Actions
-
Do nothing
-
-
-
-
-