X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/a4503dbcafe612d8afde480eaa2974f7440b6a4a..d9a8d3fef13473aa64470d876c63d0a1a464199f:/OmaRF/Indicators.lua diff --git a/OmaRF/Indicators.lua b/OmaRF/Indicators.lua index 8a5882c..b3ad0ef 100644 --- a/OmaRF/Indicators.lua +++ b/OmaRF/Indicators.lua @@ -3,7 +3,6 @@ local pairs, ipairs = pairs, ipairs; local floor = math.floor; local GetTime = GetTime; local UnitAura = UnitAura; -local UnitIsPlayer = UnitIsPlayer; local UnitIsDeadOrGhost, UnitIsConnected = UnitIsDeadOrGhost, UnitIsConnected; local CTimerAfter = C_Timer.After; @@ -101,7 +100,7 @@ function M.CheckIndicators(frame, unit) name, _, icon, count, _, _, expires, caster, _, _, id = UnitAura(unit, i, filter); if not id then break end local pos = watchedAuras[id] or watchedAuras[name]; - if pos and UnitIsPlayer(caster) then + if pos and caster == "player" then needUpdate = remaining(frame.inds[pos].text, expires, current); frame.inds[pos].expires = expires; frame.inds[pos]:Show();