Aloha once again!
So I'm currently trying to develop a custom spell for a unit which I plan to be almost exactly like the Warden's Fan of Knives spell, only I want it to infect all hit targets with the slow poison buff.
After doing some research on how to attach buffs to units by giving them an ability (with the use of triggers) I've hit a road block. It seems no matter what I do I cannot get the ability carrying the slow poison buff to attach to enemy units in the cast range.
Instead the ability is given to the hero casting the spell. The triggers I'm using for this at the moment are:
If you think you might be able to help me I would be very grateful for any advice.
So I'm currently trying to develop a custom spell for a unit which I plan to be almost exactly like the Warden's Fan of Knives spell, only I want it to infect all hit targets with the slow poison buff.
After doing some research on how to attach buffs to units by giving them an ability (with the use of triggers) I've hit a road block. It seems no matter what I do I cannot get the ability carrying the slow poison buff to attach to enemy units in the cast range.
Instead the ability is given to the hero casting the spell. The triggers I'm using for this at the moment are:
-
Map Initialization
-
Unit Group - Pick every unit in (Units owned by Player 2 (Blue)) and do (Actions)
-
Loop - (Actions)
-
Unit Group - Add (Picked unit) to UG_Enemies
-
-
-
-
Unit - A unit Begins casting an ability
-
Ability Comparison - (Ability being cast) Equal to Fan of Infection
-
Unit Group - Pick every unit in (UG_Enemies) and do (Actions)
-
Loop - (Actions)
-
Unit Group - Pick every unit in (Units within 10 of (Position of (Casting unit)) matching ((Picked unit) Equal to (Random unit from UG_Enemies))) and do (Unit - Add Infected to (Picked unit))
-
-
-
-
Wait 1.00 seconds
-
Unit - Remove Infected from (Picked unit)
-
If you think you might be able to help me I would be very grateful for any advice.
Last edited: