mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 19:19:59 +00:00
rangecheck: always update current target
This commit is contained in:
@@ -63,6 +63,8 @@ pfUI:RegisterModule("rangecheck", function ()
|
||||
this.tick = GetTime() + interval
|
||||
end
|
||||
|
||||
unitdata["target"] = IsActionInRange(pfUI.rangecheck.slot)
|
||||
|
||||
-- skip invalid units
|
||||
while not this:NeedRangeScan(units[this.id]) and this.id <= numunits do
|
||||
this.id = this.id + 1
|
||||
@@ -85,8 +87,6 @@ pfUI:RegisterModule("rangecheck", function ()
|
||||
unitdata[unit] = IsActionInRange(pfUI.rangecheck.slot)
|
||||
TargetLastTarget()
|
||||
pfScanActive = false
|
||||
else
|
||||
unitdata[unit] = IsActionInRange(pfUI.rangecheck.slot)
|
||||
end
|
||||
|
||||
this.id = this.id + 1
|
||||
|
||||
Reference in New Issue
Block a user