I'm trying to create a trigger that puts all units with a certain buff (BossKillerBuff) in a group, and kills them.
However, I can't make it work, and nothing happens at all, I'm thinking the issue lies within the trigger that picks the units, but I'm not sure.
This is supposed to work like in escape maps, where you die if you get close to patroling units.
Anyhow, here's my trigger:
Also, if you see any leaks, feel free to point them out.
The unit group is dealt with when the unit with the aura goes away.
However, I can't make it work, and nothing happens at all, I'm thinking the issue lies within the trigger that picks the units, but I'm not sure.
This is supposed to work like in escape maps, where you die if you get close to patroling units.
Anyhow, here's my trigger:
-
VoidwalkerAura
-
Events
- Time - Every 0.20 seconds of game time
- Conditions
-
Actions
-
Unit Group - Pick every unit in (Units in LavapoolRegionTarget matching (((Picked unit) has buff BossKillerBuff ) Equal to True)) and do (Actions)
-
Loop - Actions
- Unit Group - Add (Picked unit) to KillerAuraGroup
- Unit Group - Pick every unit in KillerAuraGroup and do (Unit - Kill (Picked unit))
-
Loop - Actions
-
Unit Group - Pick every unit in (Units in LavapoolRegionTarget matching (((Picked unit) has buff BossKillerBuff ) Equal to True)) and do (Actions)
-
Events
Also, if you see any leaks, feel free to point them out.
The unit group is dealt with when the unit with the aura goes away.