BlzUnitDisableAbility

Parameters
whichUnit unit

Unit to apply this to

abilId integer

Rawcode of ability

flag boolean

isDisabled: true to disable, false to enable ability

hideUI boolean

isHidden: true to hide, false to show

bug

(1.32.10 confirmed) The flags doesn't work as expected, act more like an integer counter: https://www.hiveworkshop.com/threads/blzunithideability-and-blzunitdisableability-dont-work.312477/

comment

Enables/disables and hides/unhides an ability for a unit. A visible disabled ability is shown as deactivated, an invisible ability disappears from the grid.

patch

1.29

return type
nothing
Source code
native BlzUnitDisableAbility                       takes unit whichUnit, integer abilId, boolean flag, boolean hideUI returns nothing
Source
unit.j
wc3modding.com
BlzUnitDisableAbility