• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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