librange: disable 40y checks while in cat form

This commit is contained in:
shagu
2024-05-23 10:37:31 +02:00
parent c6574adb58
commit 7e0990c4e6
+3
View File
@@ -141,6 +141,8 @@ librange:SetScript("OnEvent", function()
end end
end) end)
local _, class = UnitClass("player")
local druid = class == "DRUID"
local target_event = TargetFrame_OnEvent local target_event = TargetFrame_OnEvent
local target_nop = function() return end local target_nop = function() return end
@@ -166,6 +168,7 @@ librange:SetScript("OnUpdate", function()
if TradeFrame and TradeFrame:IsShown() then return nil end if TradeFrame and TradeFrame:IsShown() then return nil end
if PlayerFrame and PlayerFrame.inCombat then return nil end if PlayerFrame and PlayerFrame.inCombat then return nil end
if PlayerFrame and PlayerFrame.wandCombat then return nil end if PlayerFrame and PlayerFrame.wandCombat then return nil end
if druid and UnitPowerType("player") == 3 then return nil end
if hascombopoints then return nil end if hascombopoints then return nil end
_G.PlaySound = SoundOff _G.PlaySound = SoundOff