The title is a little misleading, but basically I can only cast the ability on the castor unit, not any other nearby units, but I can target nearby units. That's probably a little confusing, but below is a sort-of breakdown of what happens......
I have an ability that applies a buff to the target unit.
I made the ability (not the behavior or effect, but the actual ability) give an alert (Add on complete) whenever the ability is casted.
If - Targeting self (castor) - the buff is applied and I get an add on complete message.
if - Targeting nearby unit - I get no error message, the cursor is green when hovering over target unit, the little green circle below the targeted unit blinks a few times after clicking, but....... I get no add on complete message and the buff is not applied.
Any ideas as to what my problem is? I can post more information if it would be helpful.
Do you have a default button? What is the duration of the buff?
Otherwise I am out of ideas and recommend you upload the map so others can look for the problem.
I do have a default button and the duration is set to 15 seconds.
The main thing that's confusing me is that it can be cast on the castor, but no one else, and yet it appears to be able to cast on other units, just that the ability doesn't go off and the buff isn't applied. This makes me think that it's a problem with the ability itself and not the behavior or effect, but... idk what the problem IS.
Try excluding self and use the ability, just to be sure. As I've never used a targeted ability that can target self and other units.
If I exclude self, I get the "Can't target castor" error, as would be expected.
Between the audio confirmation sound from the unit, the green circle flashing when I click, and the mouse turning green when hovering over the other unit, yet no "addon complete" message, I feel like my castor must be getting the order to use the ability on the other unit, just it can't complete the order for some reason. The other unit is well within range of the ability, and I didn't remove movement from my castor, so... I just don't see why it's not casting.
I'm probably going to remake everything and hope that it works then, but this is really bugging me. It should be casting!!!
If I recall correctly I had the transient flag break the heal ability when I was messing around with it in one of my test maps. The problem is some abilities are ridiculously intricate and convoluted in their workings, so 'transient' might not play nice with some of the other aspects/effects of an ability. (I never looked deeper myself though.)