• 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.

Increase damage under conditions

Status
Not open for further replies.
Level 8
Joined
Jul 10, 2008
Messages
353
I want to make a unit to take extra damage when the attackers auto attack is type Magic.

Also I have been wondering if Armor - Ethereal does anything apart from changing sound effect.
 
nope. this is impossible(if done for universal purpose)

getting the unit's attack type is impossible.

What you can do is that save the attack types per unit type :
call SaveInteger(<hash>, <my unit type>, 0, <my attack type>)

then using a PDD(Physical Damage Detection), check the source' unit type, load it's attack type and see if it matches the wanted attack type.
 
Status
Not open for further replies.
Top