Lord_Kakashi
The Wabbits are attacking
- Reaction score
- 27
Okay so i searched a bit and couldn't find anything about this..
How would I go about making a trigger which caused a unit to cast a spell when it's issued an attack order? (instead of attacking)
Basically i want a tower which casts Chain lightning when a unit comes near it instead of using its regular attack.. e.g. when it begins auto-attacking that unit.
I know i could use bounce for this one, but i might need the same for different abilities.. Any thoughts?
This is what i have so far.
But it doesn't work.
How would I go about making a trigger which caused a unit to cast a spell when it's issued an attack order? (instead of attacking)
Basically i want a tower which casts Chain lightning when a unit comes near it instead of using its regular attack.. e.g. when it begins auto-attacking that unit.
I know i could use bounce for this one, but i might need the same for different abilities.. Any thoughts?
This is what i have so far.
Code:
Lightning Demon
Events
Unit - A unit Is issued an order targeting an object
Conditions
(Unit-type of (Ordered unit)) Equal to Chain Demon
Actions
Unit - Order (Triggering unit) to Orc Far Seer - Chain Lightning (Target unit of issued order)
But it doesn't work.