- Joined
- Aug 29, 2004
- Messages
- 1
This seems to keep causing the dummy to shadow strike units in 150 range and I think its because it keeps spawning a new dummy, but I can't figure out how to fix this.
wildfireGUI
Events
Unit - A unit Begins casting an ability
Conditions
Or - Any (Conditions) are true
Conditions
(Ability being cast) Equal to |c00ff1000Wildfire - W
(Ability being cast) Equal to Wildfire1
(Ability being cast) Equal to Shadow Strike (Neutral Hostile)
(Ability being cast) Equal to Wild - dummys
(Ability being cast) Equal to Shadow Strike
Actions
Unit Group - Pick every unit in (Units within 150.00 of (Target point of ability being cast)) and do (Actions)
Loop - Actions
Unit - Create 1 Wildfire(dummy) for (Owner of (Casting unit)) at (Position of (Picked unit)) facing Default building facing degrees
If ((Picked unit) Equal to (Last created unit)) then do (Unit Group - Remove (Matching unit) from (Last created unit group)) else do (Do nothing)
If (((Picked unit) has buff |c00ff1000Wildfire ) Equal to False) then do (Unit - Order (Last created unit) to Night Elf Warden - Shadow Strike (Picked unit)) else do (Do nothing)
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
I tried using the if statements to fix it but :/I also tried wait both inside and outside the loop but to no success. I was hoping that having the buff If statement would prevent it from being cast but it doesn't seem to work.
wildfireGUI
Events
Unit - A unit Begins casting an ability
Conditions
Or - Any (Conditions) are true
Conditions
(Ability being cast) Equal to |c00ff1000Wildfire - W
(Ability being cast) Equal to Wildfire1
(Ability being cast) Equal to Shadow Strike (Neutral Hostile)
(Ability being cast) Equal to Wild - dummys
(Ability being cast) Equal to Shadow Strike
Actions
Unit Group - Pick every unit in (Units within 150.00 of (Target point of ability being cast)) and do (Actions)
Loop - Actions
Unit - Create 1 Wildfire(dummy) for (Owner of (Casting unit)) at (Position of (Picked unit)) facing Default building facing degrees
If ((Picked unit) Equal to (Last created unit)) then do (Unit Group - Remove (Matching unit) from (Last created unit group)) else do (Do nothing)
If (((Picked unit) has buff |c00ff1000Wildfire ) Equal to False) then do (Unit - Order (Last created unit) to Night Elf Warden - Shadow Strike (Picked unit)) else do (Do nothing)
Unit - Add a 0.50 second Generic expiration timer to (Last created unit)
I tried using the if statements to fix it but :/I also tried wait both inside and outside the loop but to no success. I was hoping that having the buff If statement would prevent it from being cast but it doesn't seem to work.