Hi,
So there's this ability that is attached to an item (that is, you use the item to cast the ability). I want the unit to abort casting this ability if it does not meet the casting requirements.
So far I've tried doing these on the "unit begins casting an ability" event but to no avail:
Another idea I have is to base the ability off Carrion Swarm or something that doesn't allow you to target cliff edges / unpathable areas so the Warcraft III engine causes you to pick a different target location.
Any thoughts?
So there's this ability that is attached to an item (that is, you use the item to cast the ability). I want the unit to abort casting this ability if it does not meet the casting requirements.
So far I've tried doing these on the "unit begins casting an ability" event but to no avail:
- Pausing the unit, ordering a stop order, and then unpausing: This does nothing, cooldown still goes into effect.
- Removing the item, and then adding the item: This actually works, but the problem is with the item cooldown thingy. If you used the ability successfully at first, picked up some reset ability tome, then cast it unsuccessfully, the item would still be in cooldown because of that.
Another idea I have is to base the ability off Carrion Swarm or something that doesn't allow you to target cliff edges / unpathable areas so the Warcraft III engine causes you to pick a different target location.
Any thoughts?