mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-29 02:36:02 +00:00
unitframes: do not update target during scan
This commit is contained in:
+3
-3
@@ -35,10 +35,9 @@ function pfUI.api.UnitInRange(unit)
|
||||
RangeCache[unit] = {}
|
||||
RangeCache[unit].time = GetTime()
|
||||
|
||||
local noswitch = true
|
||||
if not UnitIsUnit("target", unit) then
|
||||
pfScanActive = true
|
||||
TargetUnit(unit)
|
||||
noswitch = false
|
||||
end
|
||||
|
||||
if IsActionInRange(pfUI.rangecheck.slot) == 1 then
|
||||
@@ -47,8 +46,9 @@ function pfUI.api.UnitInRange(unit)
|
||||
RangeCache[unit].range = nil
|
||||
end
|
||||
|
||||
if not noswitch then
|
||||
if pfScanActive then
|
||||
TargetLastTarget()
|
||||
pfScanActive = false
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user