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
| Name | Value | Description |
|---|---|---|
DAMAGE_TYPE_NONE | 0 | Represents no damage type. |
DAMAGE_TYPE_PHYSICAL | 1 | Physical damage, reduced by armor. |
DAMAGE_TYPE_MAGICAL | 2 | Magical damage, reduced by magic resistance. |
DAMAGE_TYPE_PURE | 3 | Pure damage, unaffected by armor or magic resistance. |
DAMAGE_TYPE_ALL | 7 | Combination of physical, magical, and pure damage. |
DAMAGE_TYPE_HP_REMOVAL | 8 | Removes health directly, without triggering damage effects or abilities. |
DAMAGE_TYPE_ABILITY_DEFINED | 22 | Custom damage type defined by specific ability mechanics. |