From cfbea5eea88353e939b7955cd345101c65a0586d Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 18 May 2023 14:09:42 +0200 Subject: [PATCH] autoshift: disable autoshifting in some cases Don't cancel druid form when clicking on npcs while in combat. The "Can't speak while shapeshifted" will no longer put you out of your druid forms while being in combat. This is especially for bear tanks who better not lose their form while friendly NPCs are nearby. --- modules/autoshift.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/autoshift.lua b/modules/autoshift.lua index 41013614..8d84dc5d 100644 --- a/modules/autoshift.lua +++ b/modules/autoshift.lua @@ -91,6 +91,11 @@ pfUI:RegisterModule("autoshift", "vanilla", function () -- scan through buffs and cancel shapeshift/mount for id, errorstring in pairs(pfUI.autoshift.errors) do if arg1 == errorstring then + -- dont's cancel form when clicking on npcs while in combat + if arg1 == ERR_CANT_INTERACT_SHAPESHIFTED and UnitAffectingCombat("player") then + return + end + for i=0,31,1 do -- detect mounts based on tooltip text pfUI.autoshift.scanner:SetPlayerBuff(i)