- Joined
- Oct 3, 2005
- Messages
- 358
You know, I've resently noticed a very weird bug while makng a spell of mine.
So, the spell is called Slime Walk. When activated, the caster will leave a trail of slime behind him when he walks. So, I set the Variables (WebWalker = Triggering Unit) and use a repeating 0.03 timer to create a dummy at WebWalker's position. The spell lasts 30 seconds.
What bothers me most is that when I order another unit to cast the same spell, the path of slime is suddenly interrupted and starts to appear at the position of the 2nd caster. I think it's because the WebCaster variable is changed to the 2nd caster, and of course, it doesn't finish completely the 1st cast's effect.
Do you know how I can make it work so that more than 1 caster can use this skill, but not interrupting the effects of the first cast for the first caster?
NOTE: Such One-unit-per-cast/One-Caster-Only bug can be found in many other spell attempts, especially when TargetUnit or CasterUnit variables are involed.
So, the spell is called Slime Walk. When activated, the caster will leave a trail of slime behind him when he walks. So, I set the Variables (WebWalker = Triggering Unit) and use a repeating 0.03 timer to create a dummy at WebWalker's position. The spell lasts 30 seconds.
What bothers me most is that when I order another unit to cast the same spell, the path of slime is suddenly interrupted and starts to appear at the position of the 2nd caster. I think it's because the WebCaster variable is changed to the 2nd caster, and of course, it doesn't finish completely the 1st cast's effect.
Do you know how I can make it work so that more than 1 caster can use this skill, but not interrupting the effects of the first cast for the first caster?
NOTE: Such One-unit-per-cast/One-Caster-Only bug can be found in many other spell attempts, especially when TargetUnit or CasterUnit variables are involed.