- Joined
- May 16, 2020
- Messages
- 660
Hi guys,
The following trigger should pick all units who have a specific debuff and then create a dummy to cast Frost Nova on them. However, for some reason the game doesn't pick every unit who has the debuff...
The trigger is based around two spells: One is Frostbreath (the ability that starts the trigger) and the other Breath of Fire (dummy ability to deal 2x the initial damage and add some cool effect). Once the spell enters the later stages, the game should pick units with the damage-debuff from Frostbreath, but doesn't work. Can anyone help me understand why and how I can make the slow from Frost Nova more reliable?
Attached the map from where I took the spell - it's called Dual Breath. Also attached 2 images which show that, although two units are affected by the Frostbreath debuff, only one of them has the slow from Frost Nova.
The following trigger should pick all units who have a specific debuff and then create a dummy to cast Frost Nova on them. However, for some reason the game doesn't pick every unit who has the debuff...
The trigger is based around two spells: One is Frostbreath (the ability that starts the trigger) and the other Breath of Fire (dummy ability to deal 2x the initial damage and add some cool effect). Once the spell enters the later stages, the game should pick units with the damage-debuff from Frostbreath, but doesn't work. Can anyone help me understand why and how I can make the slow from Frost Nova more reliable?
Attached the map from where I took the spell - it's called Dual Breath. Also attached 2 images which show that, although two units are affected by the Frostbreath debuff, only one of them has the slow from Frost Nova.
-
Dual Breath
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Dual Breath
-
Actions
- Set VariableSet DB_Caster = (Triggering unit)
- Set VariableSet DB_CasterPos = (Position of DB_Caster)
- Unit - Create 1 Dummy for (Owner of DB_Caster) at DB_CasterPos facing Default building facing degrees
- Unit - Add Dual Breath Fire to (Last created unit)
- Unit - Set level of Dual Breath Fire for (Last created unit) to (Level of Dual Breath for DB_Caster)
- Set VariableSet DB_TargetPos = (Target point of ability being cast)
- Unit - Order (Last created unit) to Neutral Brewmaster - Breath Of Fire DB_TargetPos
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Wait 0.27 seconds
- Set VariableSet DB_Group = (Units in (Playable map area) matching (((Matching unit) has buff Dual Breath ) Equal to True))
-
Unit Group - Pick every unit in DB_Group and do (Actions)
-
Loop - Actions
- Unit - Create 1 Dummy for (Owner of DB_Caster) at DB_CasterPos facing Default building facing degrees
- Unit - Add Dual Breath Slow to (Last created unit)
- Unit - Order (Last created unit) to Undead Lich - Frost Nova (Picked unit)
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
-
Loop - Actions
- Custom script: call RemoveLocation (udg_DB_CasterPos)
- Custom script: call DestroyGroup (udg_DB_Group)
-
Events