#Why does victims of my aura invaunerable to attacks?

1 messages · Page 1 of 1 (latest)

toxic python
#

i created an ability that works similiar to doom's aghanim scepter, but for some reason, i can't attack targets that are affected by an aura

ivory raft
#

it's because of this: lua function modifier_doom_ultimate_aura_debuff:CheckState() return { [1] = true, -- MODIFIER_STATE_SILENCED [2] = true, -- MODIFIER_STATE_PASSIVES_DISABLED [3] = true, -- MODIFIER_STATE_CANNOT_BE_HEALED } end Are you guessing which numbers to use or what? First thing: you should use actual enums. 1 is MODIFIER_STATE_DISARMED, 2 is MODIFIER_STATE_ATTACK_IMMUNE (this makes them invulnerable to attacks), 3 is MODIFIER_STATE_SILENCED. Second thing: these enums need to actually exist. MODIFIER_STATE_CANNOT_BE_HEALED does not exist. Use this link if you dont like guessing which enums exist: https://moddota.com/api/#!/vscripts?search=MODIFIER_STATE

#

to disable all healing and all health restoration you should use:
MODIFIER_PROPERTY_DISABLE_HEALING in your DeclareFunctions and:

function modifier_doom_ultimate_aura_debuff:GetDisableHealing()
  return 1
end
toxic python
#

Thank you very much)