libunitscan: smoothen fps in capital cities

* only scan one unit per frame to avoid lags
This commit is contained in:
shagu
2019-03-31 14:59:20 +02:00
parent 33e32e4368
commit 1783c2ca3a
+2 -1
View File
@@ -142,7 +142,8 @@ if pfUI.client <= 11200 then
-- don't scan when another unit is in target
if UnitExists("target") or UnitName("target") then return end
for name in pairs(queue) do
local name = next(queue)
if name then
-- try to target the unknown unit
TargetByName(name, true)
ClearTarget()