Is there any way to make an attack/ability be able to damage units tagged as invulnerable? I want to have a unit that can only be damaged by said ability (Hyperion Yamato, in case you were wondering).
Yes. Setting it to Required will make it necessary for a unit to be invulnerable to be targetable. That might be good if oyu want the Yamato Cannon to only hit invulnerable units and nothing else.
I edited my initial answer. "as required" might sound confusing to some people.
Though I've never tried it, for basic attacks I've also seen an ability called something like 'attack (allows invulnerable)'. So I assume replacing a units regular attack with that would allow it to target invulnerable with its weapon.
One should not be able to hit Invulnerable units. Invulnerable units should be invulnerable as the name suggests. If you can attack/damage them then they are not invulnerable.
Sure you can probably hack in the ability to damage them but this can lead to confusion or bugs in the future when you really want a unit to be invulnerable.
lol why? all he wants is one special enemy unit that can only be hit by one other special type of ability. I do stuff liek this all the time. Of course there are alternatives. He could add validators to all the abilities and weapons in his map and check for that one unit but that would be too much work.
There migh be a trigger solution where he replenishes the units health in frequent intervals until its hit by that one special ability, but that sounds too unrealiable to me.
Is there any way to make an attack/ability be able to damage units tagged as invulnerable? I want to have a unit that can only be damaged by said ability (Hyperion Yamato, in case you were wondering).
Filters are usually at the ability or the damage effect... But Yamato Cannon uses a Validator.
Go to Validators and find the Yamato Cannon TargetFilters. Select filters as you need them.
Okay, found it. It was set to "Excluded" for invulnerable, so I assume setting it to "Allowed" will fix it. Thank you! :D
Yes. Setting it to Required will make it necessary for a unit to be invulnerable to be targetable. That might be good if oyu want the Yamato Cannon to only hit invulnerable units and nothing else.
I edited my initial answer. "as required" might sound confusing to some people.
Though I've never tried it, for basic attacks I've also seen an ability called something like 'attack (allows invulnerable)'. So I assume replacing a units regular attack with that would allow it to target invulnerable with its weapon.
Gonna test it tomorrow.
Yeah, I've seen that too, MaskeImposter, though can't remember where.
EDIT: Okay, I've tested it, and it works! Thanks!
One should not be able to hit Invulnerable units. Invulnerable units should be invulnerable as the name suggests. If you can attack/damage them then they are not invulnerable.
Sure you can probably hack in the ability to damage them but this can lead to confusion or bugs in the future when you really want a unit to be invulnerable.
lol why? all he wants is one special enemy unit that can only be hit by one other special type of ability. I do stuff liek this all the time. Of course there are alternatives. He could add validators to all the abilities and weapons in his map and check for that one unit but that would be too much work.
There migh be a trigger solution where he replenishes the units health in frequent intervals until its hit by that one special ability, but that sounds too unrealiable to me.
@OutsiderXE: Go
What you said. I need an enemy that can only be hit by one attack. This works.
Bug-squashing is not a problem. I've done for over 30 maps now, and I'm getting quite used to it.
Well hopefully it is better than WC3's invulnerable which hid life amounts in the UI.