Trying to do new event from lua function
Haven`t idea when problemCode:frame:RegisterEvent('UI_ERROR_MESSAGE') frame:SetScript('OnEvent', function(object, event, message) if event == 'UI_ERROR_MESSAGE' and (message == ERR_OUT_OF_RANGE or message == ERR_SPELL_OUT_OF_RANGE) then return true end end)
Need if function return true, show icon
Pls help