- Joined
- Jan 6, 2010
- Messages
- 118
Is there a good way of detecting when an ability EXPIRES? For example, I have a spell based on Divine Shield, and I trigger a buff on the casting unit that is supposed to be removed when the spell ends.
It seems to me Stops Casting an ability and Finishes casting neither refers to the expiration point of the ability (what's the difference between these then?).
If no function detects this, I guess I have to trigger a wait function for an amount of time based on the current level of the skill holder? seems a bit tedious, but..
My first temporary fix on this was a 2 sec periodic trigger that checked if a unit is casting the spell, and removing it if not. Is this a viable solution, or is such a continous operation a significant and uncessary load on CPU/memory? The map can have over 1000 units...
Appreciate your thoughts!
It seems to me Stops Casting an ability and Finishes casting neither refers to the expiration point of the ability (what's the difference between these then?).
If no function detects this, I guess I have to trigger a wait function for an amount of time based on the current level of the skill holder? seems a bit tedious, but..
My first temporary fix on this was a 2 sec periodic trigger that checked if a unit is casting the spell, and removing it if not. Is this a viable solution, or is such a continous operation a significant and uncessary load on CPU/memory? The map can have over 1000 units...
Appreciate your thoughts!