- Joined
- Nov 22, 2006
- Messages
- 1,260
Note: this is for JASSers.
I have a hero that has 5 different spells. When I was testing them all at once, I noticed that some of the spells weren't working properly. First I was surprised, because there were all working when I tested them one by one. Then I was trying to find the problem when I realized what happened. Before that, I want to make sure that everyone knows how to create a channeling JASS spell: attach stuff to the caster, mostly timer(s), then in the trigger that fires if/when the caster stops channeling, get that stuff from the caster you previously attached and destroy timer(s) etc. But here is the problem: If I attach stuff to the caster in more than one spell, FlushHandleLocals(caster) from one spell would mess up the other one's attached stuff. Does anybody know how to fix this problem?
I have a hero that has 5 different spells. When I was testing them all at once, I noticed that some of the spells weren't working properly. First I was surprised, because there were all working when I tested them one by one. Then I was trying to find the problem when I realized what happened. Before that, I want to make sure that everyone knows how to create a channeling JASS spell: attach stuff to the caster, mostly timer(s), then in the trigger that fires if/when the caster stops channeling, get that stuff from the caster you previously attached and destroy timer(s) etc. But here is the problem: If I attach stuff to the caster in more than one spell, FlushHandleLocals(caster) from one spell would mess up the other one's attached stuff. Does anybody know how to fix this problem?