Added difficulty to boss name of selected page

This commit is contained in:
Rvng
2021-09-14 21:07:44 -04:00
parent 4d74b245a9
commit 9098f763c6
+9 -1
View File
@@ -919,7 +919,15 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
getglobal("AtlasLootItemsFrame_NEXT"):Hide();
getglobal("AtlasLootItemsFrame_PREV"):Hide();
if dataID ~= "SearchResult" and dataID ~= "WishList" then
AtlasLoot_BossName:SetText(AtlasLoot_TableNames[dataID][1]);
local affix = "";
if AtlasLoot_Data[dataID].Dif ~= nil then
if AtlasLoot_Data[dataID].Raid ~= nil then
affix = " ("..AtlasLoot_RaidDifficulty[AtlasLoot.db.profile.MythicPlussTier]..")"
else
affix = " ("..AtlasLoot_Difficulty[AtlasLoot.db.profile.MythicPlussTier]..")"
end
end
AtlasLoot_BossName:SetText(AtlasLoot_TableNames[dataID][1]..affix);
else
AtlasLoot_BossName:SetText(boss);
end