mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-17 18:20:49 +00:00
unitframes: fix player buff durations in group
This commit is contained in:
+2
-2
@@ -668,7 +668,7 @@ function pfUI.uf:RefreshUnit(unit, component)
|
|||||||
if texture then
|
if texture then
|
||||||
unit.buffs[i]:Show()
|
unit.buffs[i]:Show()
|
||||||
|
|
||||||
if unit.label == "player" then
|
if unit:GetName() == "pfPlayer" then
|
||||||
local timeleft = GetPlayerBuffTimeLeft(GetPlayerBuff(unit.buffs[i]:GetID()-1,"HELPFUL"))
|
local timeleft = GetPlayerBuffTimeLeft(GetPlayerBuff(unit.buffs[i]:GetID()-1,"HELPFUL"))
|
||||||
CooldownFrame_SetTimer(unit.buffs[i].cd, GetTime(), timeleft, 1)
|
CooldownFrame_SetTimer(unit.buffs[i].cd, GetTime(), timeleft, 1)
|
||||||
end
|
end
|
||||||
@@ -745,7 +745,7 @@ function pfUI.uf:RefreshUnit(unit, component)
|
|||||||
if texture then
|
if texture then
|
||||||
unit.debuffs[i]:Show()
|
unit.debuffs[i]:Show()
|
||||||
|
|
||||||
if unit.label == "player" then
|
if unit:GetName() == "pfPlayer" then
|
||||||
local timeleft = GetPlayerBuffTimeLeft(GetPlayerBuff(unit.debuffs[i]:GetID() - 1, "HARMFUL"),"HARMFUL")
|
local timeleft = GetPlayerBuffTimeLeft(GetPlayerBuff(unit.debuffs[i]:GetID() - 1, "HARMFUL"),"HARMFUL")
|
||||||
CooldownFrame_SetTimer(unit.debuffs[i].cd, GetTime(), timeleft, 1)
|
CooldownFrame_SetTimer(unit.debuffs[i].cd, GetTime(), timeleft, 1)
|
||||||
elseif pfUI.debuffs and pfUI.debuffs.active then
|
elseif pfUI.debuffs and pfUI.debuffs.active then
|
||||||
|
|||||||
Reference in New Issue
Block a user