mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-15 09:40:49 +00:00
fix shadowform in autoshift
This commit is contained in:
+10
-3
@@ -71,7 +71,7 @@ pfUI:RegisterModule("autoshift", function ()
|
|||||||
|
|
||||||
pfUI.autoshift:SetScript("OnEvent", function()
|
pfUI.autoshift:SetScript("OnEvent", function()
|
||||||
pfUI.autoshift.lastError = arg1
|
pfUI.autoshift.lastError = arg1
|
||||||
|
local CancelLater = nil
|
||||||
for id, errorstring in pairs(pfUI.autoshift.errors) do
|
for id, errorstring in pairs(pfUI.autoshift.errors) do
|
||||||
if arg1 == errorstring then
|
if arg1 == errorstring then
|
||||||
for i=0,15,1 do
|
for i=0,15,1 do
|
||||||
@@ -79,12 +79,19 @@ pfUI:RegisterModule("autoshift", function ()
|
|||||||
if (currBuffTex) then
|
if (currBuffTex) then
|
||||||
for id, bufftype in pairs(pfUI.autoshift.buffs) do
|
for id, bufftype in pairs(pfUI.autoshift.buffs) do
|
||||||
if string.find(string.lower(currBuffTex), bufftype) then
|
if string.find(string.lower(currBuffTex), bufftype) then
|
||||||
CancelPlayerBuff(i)
|
if string.find(string.lower(currBuffTex), "spell_shadow_shadowform") then
|
||||||
return
|
CancelLater = i
|
||||||
|
else
|
||||||
|
CancelPlayerBuff(i)
|
||||||
|
return
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if CancelLater then
|
||||||
|
CancelPlayerBuff(CancelLater)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user