local floor = math.floor;
local GetTime = GetTime;
local UnitAura = UnitAura;
-local UnitIsPlayer = UnitIsPlayer;
local UnitIsDeadOrGhost, UnitIsConnected = UnitIsDeadOrGhost, UnitIsConnected;
local CTimerAfter = C_Timer.After;
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();