SetUnitInvulnerable

Parameters
whichUnit unit
flag boolean
comment

Renders a unit invulnerable/lifts that specific invulnerability.

note

The native seems to employ the 'Avul' ability, which is defined in the default AbilityData.slk. If there is no 'Avul' defined, this will crash the game.

patch

1.00

return type
nothing
Source code
native          SetUnitInvulnerable takes unit whichUnit, boolean flag returns nothing
Source
common.j
wc3modding.com
SetUnitInvulnerable