Skip to content

DamageTypes Enum

The DamageTypes enum defines the various types of damage that can be dealt in Dota 2, each interacting differently with resistances and abilities.

Enum Values

NameValueDescription
DAMAGE_TYPE_NONE0Represents no damage type.
DAMAGE_TYPE_PHYSICAL1Physical damage, reduced by armor.
DAMAGE_TYPE_MAGICAL2Magical damage, reduced by magic resistance.
DAMAGE_TYPE_PURE3Pure damage, unaffected by armor or magic resistance.
DAMAGE_TYPE_ALL7Combination of physical, magical, and pure damage.
DAMAGE_TYPE_HP_REMOVAL8Removes health directly, without triggering damage effects or abilities.
DAMAGE_TYPE_ABILITY_DEFINED22Custom damage type defined by specific ability mechanics.