• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Damaging invulnerable targets

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Invulnerable units can take damage, they can receive buffs and suffer from buff effects. However an invulnerable unit has equivently 100% damage reduction for all kinds of damage and so can never be killed by having damage delt to it. Dealing damage to an invulnerable unit is a waste of computer recources as it is as useful as "call DoNothing()".
 
Level 12
Joined
Aug 18, 2006
Messages
1,193
i think he is trying to detect the invulnerability for a reason, else he just would have damaged the unit and be done with it

anyhow, the buff check seems to be the most effective one, but if they are invulnerable by the ability "Invulnerable (Neutral)" you can just check if the unit has the ability :p

and if you have added invulnerability by a trigger, just give it the "Invulnerable (Neutral)"
 
Status
Not open for further replies.
Top