Yeah thats actually what i do:
Lua Code:
local function UpdateAurasByGuid(dstGUID, spellID, expire, count, srcGUID, duration, texture) -- Shit way
local _, instance = IsInInstance()
local buUnit = instance == "arena" and "arena" or "boss"
if dstGUID == UnitGUID("mouseover") then
return UpdateAuraByUnit("mouseover", dstGUID);
else
for i = 1, 5 do
if dstGUID == UnitGUID(buUnit..i) then
return UpdateAuraByUnit(buUnit..i, dstGUID);
end
end
end
-- No match, lets try some more
local plate = ns.GetNameplateByGuid(dstGUID)
if not plate then return; end
-- We have the plate at least
UpdateAuraButton(plate, spellID, texture, count, duration, expire, true)
end