Go to the Data Editor and find the Heal ability for Medivacs under the Abilities tab. You should find the target filters there. That will allow you to choose what unit types it can heal.
So if it is used like this, since Medivacs require Biological units to heal, this trigger action will prevent the medivacs from healing biological units.
I am not 100% positive but feel free to try it yourself and see what the results are.
That definitely solved half the issue. Although, I'm also trying to prevent healing units that are below a height of 10. I've been trying to add a validator to the healing ability, but it doesn't seem to be working. I noticed that the healing ability has "Medic - Minimum Energy Required to Heal" and "Not Warping In" for validators. How can I add more?
I spent numerous hours trying to figure out how to add validators. All I had to do was click "Show Advanced Fields". ARGH!
EDIT: And sure enough, it worked!
For those interested in something similar, this is what I did
Behavior
First, I ran a trigger that picked every unit in the entire map that had a height of less than 10. If units were found, I applied the Behavior. The Behavior itself was a "Buff" (Negative) type and nothing special about it really, it was just for the validator to check to see if the unit had the buff.
Validator
As mentioned above, the Validator type was "Unit Compare Behavior Count". Selected the behavior I made and set the value to "0" (Saying that the unit(s) must not have this debuff in order to heal
Is there away to prevent a Medivac from healing specific units?
You could always change the unit type off of biological, although this may not be ideal.
@Atl0s: Go
I was thinking about doing something similar. How would I do something like that with triggers on the fly though?
bump
anyone?
Go to the Data Editor and find the Heal ability for Medivacs under the Abilities tab. You should find the target filters there. That will allow you to choose what unit types it can heal.
Thanks rkmx, but I'm curious to know if you can change those filters in-game. Anyone know how "Set State of Unit Filter" works?
So if it is used like this, since Medivacs require Biological units to heal, this trigger action will prevent the medivacs from healing biological units. I am not 100% positive but feel free to try it yourself and see what the results are.
That definitely solved half the issue. Although, I'm also trying to prevent healing units that are below a height of 10. I've been trying to add a validator to the healing ability, but it doesn't seem to be working. I noticed that the healing ability has "Medic - Minimum Energy Required to Heal" and "Not Warping In" for validators. How can I add more?
@Zurom: Go
There should be a tiny button with a green icon on the right side, that lets you add more validators.
Oh man, I am so angry lol
I spent numerous hours trying to figure out how to add validators. All I had to do was click "Show Advanced Fields". ARGH!
EDIT: And sure enough, it worked!
For those interested in something similar, this is what I did
Behavior
First, I ran a trigger that picked every unit in the entire map that had a height of less than 10. If units were found, I applied the Behavior. The Behavior itself was a "Buff" (Negative) type and nothing special about it really, it was just for the validator to check to see if the unit had the buff.
Validator
As mentioned above, the Validator type was "Unit Compare Behavior Count". Selected the behavior I made and set the value to "0" (Saying that the unit(s) must not have this debuff in order to heal