- Joined
- Dec 25, 2018
- Messages
- 110
This trigger doesn't work properly, when units are inside AoE range they take damage, but if they go out and come back to it they are not affected.
Did I miss out on something?
Did I miss out on something?
-
Smoke
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Smoke
-
-
Actions
-
Custom script: local unit udg_Caster
-
Custom script: local location udg_SmokePoint
-
Set Caster = (Triggering unit)
-
Set SmokePoint = (Target point of ability being cast)
-
Set SmokeDMG = ((40.00 x (Real((Level of Smoke for Caster)))) + ((Real((Agility of Caster (Include bonuses)))) / 2.00))
-
Unit - Create 1 Dummy for (Owner of Caster) at SmokePoint facing Default building facing degrees
-
Unit - Add a 6.00 second Generic expiration timer to (Last created unit)
-
Unit - Add Smoke1 to (Last created unit)
-
Unit - Set level of Smoke1 for (Last created unit) to (Level of Smoke for Caster)
-
Unit - Order (Last created unit) to Human Dragonhawk Rider - Cloud SmokePoint
-
Set SmokeGroup = (Units within 350.00 of SmokePoint matching ((((Matching unit) belongs to an ally of (Owner of (Last created unit))) Equal to False) and (((Matching unit) is alive) Equal to True)))
-
Unit Group - Pick every unit in SmokeGroup and do (Actions)
-
Loop - Actions
-
Unit - Cause (Last created unit) to damage (Picked unit), dealing SmokeDMG damage of attack type Spells and damage type Normal
-
-
-
Custom script: call DestroyGroup(udg_SmokeGroup)
-
Wait 1.00 seconds
-
Set SmokeGroup = (Units within 350.00 of SmokePoint matching ((((Matching unit) belongs to an ally of (Owner of (Last created unit))) Equal to False) and (((Matching unit) is alive) Equal to True)))
-
Unit Group - Pick every unit in SmokeGroup and do (Actions)
-
Loop - Actions
-
Unit - Cause (Last created unit) to damage (Picked unit), dealing SmokeDMG damage of attack type Spells and damage type Normal
-
-
-
Custom script: call DestroyGroup(udg_SmokeGroup)
-
Wait 1.00 seconds
-
Set SmokeGroup = (Units within 350.00 of SmokePoint matching ((((Matching unit) belongs to an ally of (Owner of (Last created unit))) Equal to False) and (((Matching unit) is alive) Equal to True)))
-
Unit Group - Pick every unit in SmokeGroup and do (Actions)
-
Loop - Actions
-
Unit - Cause (Last created unit) to damage (Picked unit), dealing SmokeDMG damage of attack type Spells and damage type Normal
-
-
-
Custom script: call DestroyGroup(udg_SmokeGroup)
-
Wait 1.00 seconds
-
Set SmokeGroup = (Units within 350.00 of SmokePoint matching ((((Matching unit) belongs to an ally of (Owner of (Last created unit))) Equal to False) and (((Matching unit) is alive) Equal to True)))
-
Unit Group - Pick every unit in SmokeGroup and do (Actions)
-
Loop - Actions
-
Unit - Cause (Last created unit) to damage (Picked unit), dealing SmokeDMG damage of attack type Spells and damage type Normal
-
-
-
Custom script: call DestroyGroup(udg_SmokeGroup)
-
Wait 1.00 seconds
-
Set SmokeGroup = (Units within 350.00 of SmokePoint matching ((((Matching unit) belongs to an ally of (Owner of (Last created unit))) Equal to False) and (((Matching unit) is alive) Equal to True)))
-
Unit Group - Pick every unit in SmokeGroup and do (Actions)
-
Loop - Actions
-
Unit - Cause (Last created unit) to damage (Picked unit), dealing SmokeDMG damage of attack type Spells and damage type Normal
-
-
-
Custom script: call DestroyGroup(udg_SmokeGroup)
-
Wait 1.00 seconds
-
Set SmokeGroup = (Units within 350.00 of SmokePoint matching ((((Matching unit) belongs to an ally of (Owner of (Last created unit))) Equal to False) and (((Matching unit) is alive) Equal to True)))
-
Unit Group - Pick every unit in SmokeGroup and do (Actions)
-
Loop - Actions
-
Unit - Cause (Last created unit) to damage (Picked unit), dealing SmokeDMG damage of attack type Spells and damage type Normal
-
-
-
Custom script: call DestroyGroup(udg_SmokeGroup)
-
Custom script: call RemoveLocation(udg_SmokePoint)
-
Custom script: set udg_Caster = null
-
Custom script: set udg_SmokePoint = null
-
-