hi guys i made Hellfire Blast ability, please check it, have i done it correctly? thanks.
-
Hellfire Blast
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Hellfire Blast
-
-
Actions
-
Custom script: local unit t = GetSpellTargetUnit()
-
Custom script: set udg_Targeted = t
-
Wait until ((Targeted has buff Stunned (Pause)) Equal to True), checking every 0.10 seconds
-
Set TargetLoc = (Position of Targeted)
-
Unit - Create 1 Dummy for (Owner of (Triggering unit)) at TargetLoc facing Default building facing degrees
-
Set Dummy = (Last created unit)
-
Unit - Add Hellfire Blast (Damage) to Dummy
-
Unit - Set level of Hellfire Blast (Damage) for Dummy to (Level of Hellfire Blast for (Triggering unit))
-
Unit - Order Dummy to Night Elf Warden - Shadow Strike Targeted
-
Unit - Add a 0.20 second Generic expiration timer to Dummy
-
-------- Damage over time --------
-
Custom script: call UnitDamageTargetBJ( GetTriggerUnit(), t, 20.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
-
Wait 1.00 seconds
-
Custom script: call UnitDamageTargetBJ( GetTriggerUnit(), t, 20.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
-
Wait 1.00 seconds
-
Custom script: call UnitDamageTargetBJ( GetTriggerUnit(), t, 20.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
-
Wait 1.00 seconds
-
Custom script: call UnitDamageTargetBJ( GetTriggerUnit(), t, 20.00, ATTACK_TYPE_NORMAL, DAMAGE_TYPE_NORMAL )
-
-------- Remove Leak --------
-
Custom script: call RemoveLocation(udg_TargetLoc)
-
Custom script: set t = null
-
Custom script: set udg_Targeted = null
-
Custom script: set udg_TargetLoc = null
-
Custom script: set udg_Dummy = null
-
-