#[SOLVED] AbilityBehavior() override trouble

1 messages · Page 1 of 1 (latest)

plain geyser
#

When I put
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_UNIT_TARGET | DOTA_ABILITY_BEHAVIOR_IGNORE_SILENCE"
The ability succesfully ignores silence and could be cast.
If I remove ignore silence and leave it to be
"AbilityBehavior" "DOTA_ABILITY_BEHAVIOR_UNIT_TARGET"
and then override it in lua

function my_ability:GetBehavior()
    --if self:GetSpecialValueFor("CastBehavior_Extra") > 0 then
    --    return DOTA_ABILITY_BEHAVIOR_IGNORE_SILENCE + DOTA_ABILITY_BEHAVIOR_UNIT_TARGET
    --end
    return DOTA_ABILITY_BEHAVIOR_UNIT_TARGET + DOTA_ABILITY_BEHAVIOR_IGNORE_SILENCE
end

I would not be able to cast it during silence
If I leave kv as it was, I would also not be able to cast ability during silence, however, UI will display ability as I still could use it.

Is it DOTA_ABILITY_BEHAVIOR_IGNORE_SILENCE bug or am I doing something wrong?

zinc flint
#

DOTA_ABILITY_BEHAVIOR_IGNORE_SILENCE in lua is 0 you can return 137438953472 and you ability will work

plain geyser
#

yup, that works, thank you good sir

#

[SOLVED] AbilityBehavior() override trouble

dark vale
dark vale
#

ah nice, the panorama dump is actually right? good to know if i need other behaviors that are borkedf