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?