This is the trigger for my spell blaze. Basically, whenever the hero runs, flames are left behind for 5 seconds and burns anyone who touches it. The problem is that setting the level of immolation for my dummy units doesn't work. Even if the spell blaze on my hero is lvl 4 the perm immolation on my dummies are still level 1. Can anyone help me fix this?
Also is this trigger leakless? Thanks.
Code:
Blaze
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Blaze
Actions
Set Blaze_Caster = (Triggering unit)
Set Blaze_Spell_Level = (Level of Blaze for Blaze_Caster)
For each (Integer A) from 1 to 18, do (Actions)
Loop - Actions
Set Blaze_Position1 = (Position of Blaze_Caster)
Wait 0.03 seconds
Set Blaze_Position2 = (Position of Blaze_Caster)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Region centered at Blaze_Position1 with size (1.00, 1.00)) contains Blaze_Position2) Equal to False
Then - Actions
Unit - Create 1 Blaze Dummy for (Owner of Blaze_Caster) at Blaze_Position2 facing Default building facing degrees
Set Blaze_Dummy = (Last created unit)
Unit - Set level of Dummy Burn for Blaze_Dummy to Blaze_Spell_Level
Unit - Add a 5.00 second Generic expiration timer to Blaze_Dummy
Custom script: set udg_Blaze_Dummy = null
Custom script: call RemoveLocation (udg_Blaze_Position1)
Custom script: call RemoveLocation (udg_Blaze_Position2)
Else - Actions
Custom script: set udg_Blaze_Caster= null
Also is this trigger leakless? Thanks.