channelilng

Returns the spellname if the UNIT is channeling, otherwise false.

channeling([UnitId]) : spellname : false
1. See Wowpedia for more information on WoW Unit IDs.

Example

if channeling('target') then
return cast(Rebuke, 'target')
end
if channeling('target') == "Hearth" then
return cast(Rebuke, 'target')
end
if channeling('player') then
return
end

Note

Just because it returns TRUE does not mean it can be interrupted.