mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-08 14:40:01 +00:00
rangecheck: suspend for several conditions
This commit is contained in:
@@ -71,11 +71,11 @@ pfUI:RegisterModule("rangecheck", function ()
|
||||
if this.id <= numunits and pfUI.rangecheck.slot then
|
||||
local unit = units[this.id]
|
||||
if not UnitIsUnit("target", unit) then
|
||||
-- don't break looting
|
||||
-- suspend for various conditions
|
||||
if pfUI.loot and pfUI.loot:IsShown() then return nil end
|
||||
if LootFrame and LootFrame:IsShown() then return nil end
|
||||
|
||||
-- don't break auto-attacks
|
||||
if InspectFrame and InspectFrame:IsShown() then return nil end
|
||||
if TradeFrame and TradeFrame:IsShown() then return nil end
|
||||
if PlayerFrame.inCombat and UnitCanAttack("player", "target") then
|
||||
return nil
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user