From fec2d375ca4d3b474afc99b46be2afb1da9ef33b Mon Sep 17 00:00:00 2001 From: shagu Date: Mon, 15 Aug 2016 21:04:07 +0200 Subject: [PATCH] fix shadowform in autoshift --- modules/autoshift.lua | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/modules/autoshift.lua b/modules/autoshift.lua index 6d997e9b..f5baba5c 100644 --- a/modules/autoshift.lua +++ b/modules/autoshift.lua @@ -71,7 +71,7 @@ pfUI:RegisterModule("autoshift", function () pfUI.autoshift:SetScript("OnEvent", function() pfUI.autoshift.lastError = arg1 - + local CancelLater = nil for id, errorstring in pairs(pfUI.autoshift.errors) do if arg1 == errorstring then for i=0,15,1 do @@ -79,12 +79,19 @@ pfUI:RegisterModule("autoshift", function () if (currBuffTex) then for id, bufftype in pairs(pfUI.autoshift.buffs) do if string.find(string.lower(currBuffTex), bufftype) then - CancelPlayerBuff(i) - return + if string.find(string.lower(currBuffTex), "spell_shadow_shadowform") then + CancelLater = i + else + CancelPlayerBuff(i) + return + end end end end end + if CancelLater then + CancelPlayerBuff(CancelLater) + end end end end)