function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if isHotkey then
return true
end
-- rest of your code here
return true
end
function onCastSpell(creature, variant, isHotkey)
if isHotkey then
return true
end
return combat:execute(creature, variant)
end