I'm creating a spell right now, and I'd like to know if you guys suspect it will cause leaking issues. There's only one hero on the map at any time that's able to cast this spell.
This is the trigger that runs for the duration of this effect.
I believe there is room for improvement in this spell. I'd like to know if you guys have any pointers. The idea is that the hero uses Stampede as a dummy ability and channels. A dummy is created that uses Breath of Fire every 0.25 seconds for the duration of the channel.
-
AllConsumingFlames
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to All-Consuming Flames
-
-
Actions
-
Set ACFCaster = (Casting unit)
-
Set ACFTargetPoint = (Target point of ability being cast)
-
Set ACFCasterPoint = (Position of (Casting unit))
-
Unit - Create 1 Dummy (AllConsumingFlames) for (Owner of ACFCaster) at ACFCasterPoint facing Default building facing degrees
-
Set ACFDummy = (Last created unit)
-
Set ACFBreathPoint = ACFTargetPoint
-
Unit - Add a 4.50 second Generic expiration timer to ACFDummy
-
Trigger - Turn on AllConsumingFlamesAttack <gen>
-
Wait 4.50 seconds
-
Trigger - Turn off AllConsumingFlamesAttack <gen>
-
Custom script: call RemoveLocation(udg_ACFTargetPoint)
-
Custom script: call RemoveLocation(udg_ACFCasterPoint)
-
Set ACFCaster = No unit
-
Set ACFDummy = No unit
-
Custom script: call RemoveLocation(udg_ACFBreathPoint)
-
-
-
AllConsumingFlamesAttack
-
Events
-
Time - Every 0.25 seconds of game time
-
-
Conditions
-
Actions
-
Unit - Order ACFDummy to Neutral - Breath Of Frost ACFBreathPoint
-
-