diff --git a/modules/autoshift.lua b/modules/autoshift.lua index 7566ed57..fe7545d4 100644 --- a/modules/autoshift.lua +++ b/modules/autoshift.lua @@ -93,8 +93,8 @@ pfUI:RegisterModule("autoshift", function () currBuffTex = GetPlayerBuffTexture(i) if (currBuffTex) then for id, bufftype in pairs(pfUI.autoshift.buffs) do - if string.find(string.lower(currBuffTex), bufftype) then - if string.find(string.lower(currBuffTex), "spell_shadow_shadowform") then + if string.find(string.lower(currBuffTex), bufftype, 1) then + if string.find(string.lower(currBuffTex), "spell_shadow_shadowform", 1) then CancelLater = i else CancelPlayerBuff(i) diff --git a/modules/chat.lua b/modules/chat.lua index 75a0a60b..f7ad7193 100644 --- a/modules/chat.lua +++ b/modules/chat.lua @@ -554,7 +554,7 @@ pfUI:RegisterModule("chat", function () text = string.gsub(text, "|Hplayer:(.-)|h%[.-%]|h(.-:-)", "[|Hplayer:%1|h" .. Name .. "|h]" .. "%2") -- make incoming whispers lighter than outgoing - if string.find(text, '|cff'..wcol) == 1 then + if string.find(text, '|cff'..wcol, 1) == 1 then text = string.gsub(text, "|r", "|cff" .. wcol) end diff --git a/modules/nameplates.lua b/modules/nameplates.lua index 58ae74ff..9b52660d 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -204,11 +204,11 @@ pfUI:RegisterModule("nameplates", function () -- show indicator for elite/rare mobs if level:GetText() ~= nil then - if pfUI.nameplates.mobs[name:GetText()] and pfUI.nameplates.mobs[name:GetText()] == "elite" and not string.find(level:GetText(), "+") then + if pfUI.nameplates.mobs[name:GetText()] and pfUI.nameplates.mobs[name:GetText()] == "elite" and not string.find(level:GetText(), "+", 1) then level:SetText(level:GetText() .. "+") - elseif pfUI.nameplates.mobs[name:GetText()] and pfUI.nameplates.mobs[name:GetText()] == "rareelite" and not string.find(level:GetText(), "R+") then + elseif pfUI.nameplates.mobs[name:GetText()] and pfUI.nameplates.mobs[name:GetText()] == "rareelite" and not string.find(level:GetText(), "R+", 1) then level:SetText(level:GetText() .. "R+") - elseif pfUI.nameplates.mobs[name:GetText()] and pfUI.nameplates.mobs[name:GetText()] == "rare" and not string.find(level:GetText(), "R") then + elseif pfUI.nameplates.mobs[name:GetText()] and pfUI.nameplates.mobs[name:GetText()] == "rare" and not string.find(level:GetText(), "R", 1) then level:SetText(level:GetText() .. "R") end end diff --git a/modules/panel.lua b/modules/panel.lua index 1da69ed2..0115c686 100644 --- a/modules/panel.lua +++ b/modules/panel.lua @@ -305,7 +305,7 @@ pfUI:RegisterModule("panel", function () local tmpText = getglobal("repairToolTipTextLeft"..i) if (tmpText ~= nil) and (tmpText:GetText()) then local searchstr = string.gsub(DURABILITY_TEMPLATE, "%%[^%s]+", "(.+)") - local _, _, lval, rval = string.find(tmpText:GetText(), searchstr) + local _, _, lval, rval = string.find(tmpText:GetText(), searchstr, 1) if (lval and rval) then repPercent = math.floor(lval / rval * 100) break