Can anyone check if my trigger leaks ?? if you can give me any way to improve it. please do
So here is how the ability works
Unit summons a flame cloud above him which strikes any opponent near itself every 0.3 seconds. Each Strike deals 15 + 10* Level of Vicious Flame as damage.
ok, so here are the triggers
Thank you for your time. Any help will be appreciated
So here is how the ability works
Unit summons a flame cloud above him which strikes any opponent near itself every 0.3 seconds. Each Strike deals 15 + 10* Level of Vicious Flame as damage.
ok, so here are the triggers
-
Vicious Flame Start
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Hellfire Blast
-
Actions
- Set ViciousFlameCaster = (Triggering unit)
- Set ViciousFlamePoint = (Position of ViciousFlameCaster)
- Set ViciousFlameLevel = (Level of Hellfire Blast for ViciousFlameCaster)
- Unit - Create 1 Dummy (Vicious Flame) for (Owner of (Triggering unit)) at ViciousFlamePoint facing (Facing of ViciousFlameCaster) degrees
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Set ViciousFlame = (Last created unit)
- Unit - Set level of Vicious Flame Stun for ViciousFlame to ViciousFlameLevel
- Countdown Timer - Start ViciousDuration as a One-shot timer that will expire in 3.00 seconds
- Trigger - Turn on Vicious Flame <gen>
- Trigger - Turn on Vicious Flame Follow <gen>
- Trigger - Turn on Vicious Duration <gen>
- Custom script: call RemoveLocation(udg_ViciousFlamePoint)
-
Events
-
Vicious Flame
-
Events
- Time - Every 0.30 seconds of game time
- Conditions
-
Actions
- Set ViciousFlameTarget = (Random 1 units from (Units within 400.00 of (Position of ViciousFlameCaster) matching ((((Matching unit) belongs to an enemy of (Owner of ViciousFlame)) Equal to True) and (((Matching unit) is alive) Equal to True))))
-
Unit Group - Pick every unit in ViciousFlameTarget and do (Actions)
-
Loop - Actions
- Unit - Order ViciousFlame to Human Mountain King - Storm Bolt (Picked unit)
- Custom script: call DestroyGroup(udg_ViciousFlameTarget)
-
Loop - Actions
-
Events
-
Vicious Flame Follow
-
Events
- Time - Every 0.03 seconds of game time
- Conditions
-
Actions
- Set ViciousFlamePoint = (Position of ViciousFlameCaster)
- Unit - Move ViciousFlame instantly to (Position of ViciousFlameCaster)
- Custom script: call RemoveLocation(udg_ViciousFlamePoint)
-
Events
-
Vicious Duration
-
Events
- Time - ViciousDuration expires
- Conditions
-
Actions
- Trigger - Turn off Vicious Flame <gen>
- Trigger - Turn off Vicious Flame Follow <gen>
- Trigger - Turn off (This trigger)
-
Events