immune
Returns if the target was known to be immune to a spell.
immune(unit, spellID) : boolean
Example
if not immune('target', Fireball) then return cast(Fireball, 'target')end
Note
Immunities are not obtainable on the client side, this utility maintains a cache in the background of known immunities the client has encountered.