cleanup: use plain string.find where possible

This commit is contained in:
shagu
2017-01-02 00:41:47 +01:00
parent 2f22f9e4a2
commit cc0c086ca2
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -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)