mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 04:00:02 +00:00
libunitscan: smoothen fps in capital cities
* only scan one unit per frame to avoid lags
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user