unitframes: do not update target during scan

This commit is contained in:
shagu
2017-04-16 18:10:35 +02:00
parent ccfa207ad4
commit a28edf8249
2 changed files with 14 additions and 5 deletions
+3 -3
View File
@@ -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