(Triggered auto target fits this question more...)
Prolblems:
I want an spell to fire with a cd of 0.06 seconds and I don't want the unit to have an attack.
This spell needs mana.
{story}
I have been trying to auto cast a spell, for example, firebolt. I want it to have the same type of targetting as if the unit was attacking on its own, but with this spell instead. I am not sure if I said that right, so I am going to say it in a different way.
What I did was (in a simple form)
when a unit is attacked
order unit to nutrual-firebolt
but the spell has a cooldown of .06 and it is abvously not that cooldown. Probably about every one second it fires.
I tried basing the abillity off of Phenix Fire, but only some units would attack with it and it wouldn't subtract the mana for it...
Any help would be much appreciated..
Prolblems:
I want an spell to fire with a cd of 0.06 seconds and I don't want the unit to have an attack.
This spell needs mana.
{story}
I have been trying to auto cast a spell, for example, firebolt. I want it to have the same type of targetting as if the unit was attacking on its own, but with this spell instead. I am not sure if I said that right, so I am going to say it in a different way.
What I did was (in a simple form)
when a unit is attacked
order unit to nutrual-firebolt
but the spell has a cooldown of .06 and it is abvously not that cooldown. Probably about every one second it fires.
I tried basing the abillity off of Phenix Fire, but only some units would attack with it and it wouldn't subtract the mana for it...
Any help would be much appreciated..