mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-10 15:40:01 +00:00
nameplates: add experimental option to show own debuffs
This commit is contained in:
+12
-2
@@ -193,7 +193,14 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
|
||||
if not self.debuffcache then self.debuffcache = {} end
|
||||
|
||||
for id = 1, 16 do
|
||||
local effect, _, texture, stacks, _, duration, timeleft = libdebuff:UnitDebuff(unitstr, id)
|
||||
local effect, _, texture, stacks, _, duration, timeleft
|
||||
|
||||
if unitstr and C.nameplates.selfdebuff == "1" then
|
||||
effect, rank, texture, stacks, dtype, duration, timeleft = libdebuff:UnitOwnDebuff(unitstr, i)
|
||||
else
|
||||
effect, _, texture, stacks, _, duration, timeleft = libdebuff:UnitDebuff(unitstr, id)
|
||||
end
|
||||
|
||||
if effect and timeleft and timeleft > 0 then
|
||||
local start = GetTime() - ( (duration or 0) - ( timeleft or 0) )
|
||||
local stop = GetTime() + ( timeleft or 0 )
|
||||
@@ -798,7 +805,10 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
|
||||
-- update all debuff icons
|
||||
for i = 1, 16 do
|
||||
local effect, rank, texture, stacks, dtype, duration, timeleft
|
||||
if unitstr then
|
||||
|
||||
if unitstr and C.nameplates.selfdebuff == "1" then
|
||||
effect, rank, texture, stacks, dtype, duration, timeleft = libdebuff:UnitOwnDebuff(unitstr, i)
|
||||
elseif unitstr then
|
||||
effect, rank, texture, stacks, dtype, duration, timeleft = libdebuff:UnitDebuff(unitstr, i)
|
||||
elseif plate.verify == verify then
|
||||
effect, rank, texture, stacks, dtype, duration, timeleft = plate:UnitDebuff(i)
|
||||
|
||||
Reference in New Issue
Block a user