I have an ability that applies a behavior, and a seperate ability that cancels it buy removing the behavior. My problem is when I have 2 casters using this ability at the same time and I cancel the spell with one of them, it cancels it on both targets. I'm guessing I need some sort of validator to sort the targets?
The ability is created specifically to cancel another ability. The Cancel Ability is a Target - Instant that removes a behavior. When the behavior is removed, it has a final effect to destroy the target. When I cancel it with one caster, the buff is removed on other targets and subsequently killed. I only want the caster who is canceling to have this happen rather than all casters using the ability.
Ok, I'll try to be more specific. Like I said before, I have 2 abilities. One meant to cancel the other. The original ability uses a persistent effect to apply force. The force draws the target toward the caster, until canceled . The ability also applies a behavior buff. The cancel ability has a set that removes the buff behavior and destroys the persistent. The target unit is then destroyed via Effect - Final (Kill Command Generic) on the behavior buff. I dont use a search to apply the removal or destroy persistent. It's an Effect-Set, it looks like this...
Here's the file, the abilities are called Tow Massive and Tow Massive Cancel. The ability only works on massive units and Tows them along with the caster.
You should recheck your data fields before you upload, I find myself unable to cast Tow Cancel to test it =X . Turns out your target filters for Tow Massive Cancel excludes everyone (player, self, ally, enemy) so yeah. simply turning them all on will fix it just in case anyone else is also trying to solve the problem.
As for your actual problem Southpaw444, it lies in Effect - Tow Massive Cancel (Destroy Persistent)
basically at its current state, you are removing the Tow behavior for anyone within a radius of 500 around the caster =S
A quick fix would be to set the radius to 1 and voila; only the unit towed by the caster is destroyed...at least for the battlecruiser.... this is problematic if you have units overlapping, or when the towed unit isnt directly at the center of the caster like for say your archon.
What you really need however, is a way to remove the tow behavior directly from the target, without using a search effect (which you are doing right now). Now since ur using two different abilities to cast and cancel the tow... im not sure how you would do this, unless there is a way to link an ability's target to another ability; or make a toggle-able target spell -maybe someone advanced with the data editor would know.
If i were you, i would do this with triggers. much more simple, at least for me. If u want i could upload a triggered version of ur tow skill.
Edit* Just remembered Nova's Domination ability. its a toggle-able target spell thank goodness, might wanna check that out if ur doing this triggerless.