+local function updateTotemFrame(frame, slot)
+ local _, name, start, duration, icon = GetTotemInfo(slot);
+ if name ~= "" then
+ frame.cd:SetCooldown(start, duration);
+ frame.cd:Show();
+ frame.icon:SetTexture(icon);
+ frame:Show();
+ else
+ frame:Hide();
+ end