• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

[General] Damage types

Not open for further replies.
Level 5
Oct 14, 2010
native UnitDamageTarget takes unit whichUnit, widget target, real amount, boolean attack, boolean ranged, attacktype attackType, damagetype damageType, weapontype weaponType returns boolean

attackType and weaponType speak for itself. But I wonder: what's damageType for? How is DAMAGE_TYPE_ACID different from e.g. DAMAGE_TYPE_SONIC?

How can I use different damage types of a unit's attack in the object editor? For example, I would like to make a unit that does sonic damage, and an upgrade that increases armor against sonic attacks. Is this possible?


Code Reviewer
Level 26
Mar 19, 2008
It's a thing that blizzard planned to use for some cool stuff but.. unfortunetaly they haven't finished the project.

There are only two usefull damage types. Universal (always deals 100% damage, no matter the armor) and Normal (takes the reduction).
There is no difference between the rest except for the name, and I'm sorry to tell you that there is no function that can check what's the damage type of damage source.

If you were playing some of great projects/maps uploaded on hiveworkshop you should remember that some of them have thing like: 'firebolt deals fire damage' - reduction to water armor (I just wrote what was on my mind, hope you get what I meant).
Remember though, that it's all about triggering and adding invisible abilities, although it's always just to make game cooler and doesn't change other ascpects of the game.
Not open for further replies.