mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-11 16:10:01 +00:00
cleanup: use plain string.find where possible
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user