Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function()
- local rollTheBonesBuffs = {193359, 193357, 193356, 199600, 199603, 193358};
- local names = "";
- local buffCount = 0;
- for j, buffId in ipairs(rollTheBonesBuffs) do
- for i = 1, 16 do
- local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId = UnitBuff("player", i);
- if spellId == buffId then
- if buffCount > 0 then
- names = names .. ", "
- end
- if spellId == 193359 then
- names = names .. "CDR";
- end
- if spellId == 193357 then
- names = names .. "Crt";
- end
- if spellId == 193356 then
- names = names .. "Cmb";
- end
- if spellId == 199600 then
- names = names .. "Nrg";
- end
- if spellId == 199603 then
- names = names .. "MS";
- end
- if spellId == 193358 then
- names = names .. "AS";
- end
- buffCount = buffCount + 1;
- end
- end
- end
- if buffCount == 6 then
- names = "ALL";
- end
- if string.len(names) > 39 then
- names = strsub(names, 0, 36) .. "...";
- end
- return names;
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement