ModifierState Enum
The ModifierState enum defines various states or conditions that can be applied to units in Dota 2. These states influence the unit's abilities, interactions, and behavior during the game.
Enum Values
| Name | Value | Description |
|---|---|---|
MODIFIER_STATE_ROOTED | 0 | The unit is rooted and cannot move. |
MODIFIER_STATE_DISARMED | 1 | The unit is disarmed and cannot attack. |
MODIFIER_STATE_ATTACK_IMMUNE | 2 | The unit is immune to attacks. |
MODIFIER_STATE_SILENCED | 3 | The unit is silenced and cannot cast spells. |
MODIFIER_STATE_MUTED | 4 | The unit is muted and cannot use items. |
MODIFIER_STATE_STUNNED | 5 | The unit is stunned and cannot perform any actions. |
MODIFIER_STATE_HEXED | 6 | The unit is hexed, disabling all abilities and reducing movement speed. |
MODIFIER_STATE_INVISIBLE | 7 | The unit is invisible to enemies without detection. |
MODIFIER_STATE_INVULNERABLE | 8 | The unit is invulnerable and cannot take damage. |
MODIFIER_STATE_MAGIC_IMMUNE | 9 | The unit is immune to magic damage. |
MODIFIER_STATE_PROVIDES_VISION | 10 | The unit provides vision to its team, even while invisible. |
MODIFIER_STATE_NIGHTMARED | 11 | The unit is under the effects of Nightmare. |
MODIFIER_STATE_BLOCK_DISABLED | 12 | The unit cannot block damage with shields or abilities. |
MODIFIER_STATE_EVADE_DISABLED | 13 | The unit cannot evade attacks. |
MODIFIER_STATE_UNSELECTABLE | 14 | The unit cannot be selected. |
MODIFIER_STATE_CANNOT_TARGET_ENEMIES | 15 | The unit cannot target enemies. |
MODIFIER_STATE_CANNOT_TARGET_BUILDINGS | 16 | The unit cannot target buildings. |
MODIFIER_STATE_CANNOT_MISS | 17 | The unit's attacks cannot miss. |
MODIFIER_STATE_SPECIALLY_DENIABLE | 18 | The unit can be denied by allies under special conditions. |
MODIFIER_STATE_FROZEN | 19 | The unit is frozen and unable to act. |
MODIFIER_STATE_COMMAND_RESTRICTED | 20 | The unit cannot execute movement or attack commands. |
MODIFIER_STATE_NOT_ON_MINIMAP | 21 | The unit does not appear on the minimap. |
MODIFIER_STATE_LOW_ATTACK_PRIORITY | 22 | The unit has low attack priority for enemy units. |
MODIFIER_STATE_NO_HEALTH_BAR | 23 | The unit's health bar is hidden. |
MODIFIER_STATE_NO_HEALTH_BAR_FOR_ENEMIES | 24 | The unit's health bar is hidden for enemies only. |
MODIFIER_STATE_NO_HEALTH_BAR_FOR_OTHER_PLAYERS | 25 | The unit's health bar is hidden for all players except its controller. |
MODIFIER_STATE_FLYING | 26 | The unit is flying and ignores terrain restrictions. |
MODIFIER_STATE_NO_UNIT_COLLISION | 27 | The unit can move through other units. |
MODIFIER_STATE_NO_TEAM_MOVE_TO | 28 | The unit's teammates cannot issue "move to" commands on it. |
MODIFIER_STATE_NO_TEAM_SELECT | 29 | The unit's teammates cannot select it. |
MODIFIER_STATE_PASSIVES_DISABLED | 30 | The unit's passive abilities are disabled. |
MODIFIER_STATE_DOMINATED | 31 | The unit is dominated by another player or entity. |
MODIFIER_STATE_BLIND | 32 | The unit is blinded and has reduced attack accuracy. |
MODIFIER_STATE_OUT_OF_GAME | 33 | The unit is temporarily removed from the game. |
MODIFIER_STATE_FAKE_ALLY | 34 | The unit appears as an ally to enemies. |
MODIFIER_STATE_FLYING_FOR_PATHING_PURPOSES_ONLY | 35 | The unit flies only for pathfinding purposes. |
MODIFIER_STATE_TRUESIGHT_IMMUNE | 36 | The unit is immune to Truesight detection. |
MODIFIER_STATE_UNTARGETABLE | 37 | The unit cannot be targeted by any actions. |
MODIFIER_STATE_UNTARGETABLE_ALLIED | 38 | The unit cannot be targeted by allied actions. |
MODIFIER_STATE_UNTARGETABLE_ENEMY | 39 | The unit cannot be targeted by enemy actions. |
MODIFIER_STATE_UNTARGETABLE_SELF | 40 | The unit cannot target itself. |
MODIFIER_STATE_IGNORING_MOVE_AND_ATTACK_ORDERS | 41 | The unit ignores movement and attack orders. |
MODIFIER_STATE_ALLOW_PATHING_THROUGH_TREES | 42 | The unit can path through trees. |
MODIFIER_STATE_NOT_ON_MINIMAP_FOR_ENEMIES | 43 | The unit does not appear on the minimap for enemies. |
MODIFIER_STATE_UNSLOWABLE | 44 | The unit cannot be slowed. |
MODIFIER_STATE_TETHERED | 45 | The unit is tethered to another unit. |
MODIFIER_STATE_IGNORING_STOP_ORDERS | 46 | The unit ignores stop commands. |
MODIFIER_STATE_FEARED | 47 | The unit is feared and moves away from the source of fear. |
MODIFIER_STATE_TAUNTED | 48 | The unit is taunted and forced to attack the source of the taunt. |
MODIFIER_STATE_CANNOT_BE_MOTION_CONTROLLED | 49 | The unit cannot be affected by motion control abilities. |
MODIFIER_STATE_FORCED_FLYING_VISION | 50 | The unit provides flying vision for its team. |
MODIFIER_STATE_ATTACK_ALLIES | 51 | The unit can attack allied units. |
MODIFIER_STATE_ALLOW_PATHING_THROUGH_CLIFFS | 52 | The unit can path through cliffs. |
MODIFIER_STATE_ALLOW_PATHING_THROUGH_FISSURE | 53 | The unit can path through fissures. |
MODIFIER_STATE_SPECIALLY_UNDENIABLE | 54 | The unit cannot be denied under special conditions. |
MODIFIER_STATE_ALLOW_PATHING_THROUGH_OBSTRUCTIONS | 55 | The unit can path through obstructions. |
MODIFIER_STATE_DEBUFF_IMMUNE | 56 | The unit is immune to debuffs. |
MODIFIER_STATE_NO_INVISIBILITY_VISUALS | 57 | The unit does not display invisibility visuals. |
MODIFIER_STATE_ALLOW_PATHING_THROUGH_BASE_BLOCKER | 58 | The unit can path through base blockers. |
MODIFIER_STATE_LAST | 59 | Marks the last valid state in the enumeration. |