From c10f4f0ea111d55b4f68821b4d244a41912affdd Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 20 Apr 2019 19:46:25 +0200 Subject: [PATCH] libcast: fix icon texture path for enemycasts --- libs/libcast.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/libcast.lua b/libs/libcast.lua index 0e6196b1..c8464c5f 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 = L["spells"][spell].icon + local icon = string.format("%s%s", "Interface\\Icons\\", L["spells"][spell].icon) -- add cast action to the database if not self.db[mob] then self.db[mob] = {} end @@ -182,7 +182,7 @@ libcast:SetScript("OnEvent", function() this.db[player].cast = arg1 this.db[player].start = GetTime() this.db[player].casttime = arg2 - this.db[player].icon = L["spells"][arg1] and "Interface\\Icons\\"..L["spells"][arg1].icon or texture + this.db[player].icon = L["spells"][arg1] and string.format("%s%s", "Interface\\Icons\\", L["spells"][arg1].icon) or texture this.db[player].channel = nil texture = nil elseif event == "SPELLCAST_STOP" or event == "SPELLCAST_FAILED" or event == "SPELLCAST_INTERRUPTED" then @@ -205,7 +205,7 @@ libcast:SetScript("OnEvent", function() this.db[player].cast = arg2 this.db[player].start = GetTime() this.db[player].casttime = arg1 - this.db[player].icon = L["spells"][arg2] and "Interface\\Icons\\"..L["spells"][arg2].icon or texture + this.db[player].icon = L["spells"][arg2] and string.format("%s%s", "Interface\\Icons\\", L["spells"][arg2].icon) or texture this.db[player].channel = true texture = nil elseif event == "SPELLCAST_CHANNEL_STOP" then