diff --git a/libs/libcast.lua b/libs/libcast.lua index 13af06ae..7264aa7b 100644 --- a/libs/libcast.lua +++ b/libs/libcast.lua @@ -107,7 +107,7 @@ function libcast:AddAction(mob, spell, channel) if L["spells"][spell] ~= nil then local casttime = L["spells"][spell].t - local icon = string.format("%s%s", "Interface\\Icons\\", L["spells"][spell].icon) + local icon = L["spells"][spell].icon and string.format("%s%s", "Interface\\Icons\\", L["spells"][spell].icon) or nil -- add cast action to the database if not self.db[mob] then self.db[mob] = {} end