mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-19 11:00:50 +00:00
nameplates: only update on existing debuffs
This commit is contained in:
@@ -194,7 +194,7 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
|
|||||||
|
|
||||||
for id = 1, 16 do
|
for id = 1, 16 do
|
||||||
local effect, _, texture, stacks, _, duration, timeleft = libdebuff:UnitDebuff(unitstr, id)
|
local effect, _, texture, stacks, _, duration, timeleft = libdebuff:UnitDebuff(unitstr, id)
|
||||||
if effect and timeleft then
|
if effect and timeleft and timeleft > 0 then
|
||||||
local start = GetTime() - ( (duration or 0) - ( timeleft or 0) )
|
local start = GetTime() - ( (duration or 0) - ( timeleft or 0) )
|
||||||
local stop = GetTime() + ( timeleft or 0 )
|
local stop = GetTime() + ( timeleft or 0 )
|
||||||
self.debuffcache[id] = self.debuffcache[id] or {}
|
self.debuffcache[id] = self.debuffcache[id] or {}
|
||||||
|
|||||||
Reference in New Issue
Block a user