From ce41c0673f2ee51ffc85a46334ef3cf1d2ff72c3 Mon Sep 17 00:00:00 2001 From: Tercio Date: Sat, 21 Oct 2017 13:30:06 -0200 Subject: [PATCH] - Fixed an error when clicking on the spec icon. - Added mythic plus score to spec icon tooltip (require raider.io mod). --- gumps/janela_principal.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gumps/janela_principal.lua b/gumps/janela_principal.lua index 68db2833..048ad36d 100644 --- a/gumps/janela_principal.lua +++ b/gumps/janela_principal.lua @@ -2249,6 +2249,14 @@ local icon_frame_on_enter = function (self) end end + if (RaiderIO and RaiderIO.GetScore) then + local mythicPlusScore = RaiderIO.GetScore (name) + if (mythicPlusScore and mythicPlusScore.allScore) then + GameCooltip:AddLine ("Mythic+ Score:", mythicPlusScore.allScore, 1, "white", "white") + _detalhes:AddTooltipBackgroundStatusbar() + end + end + GameCooltip:SetOption ("FixedHeight", height) GameCooltip:ShowCooltip() @@ -2374,7 +2382,7 @@ local icon_frame_on_click_up = function (self, button) local diff = combat:GetDifficulty() local bossInfo = combat:GetBossInfo() - if (attribute == 1 or attribute == 2 and bossInfo) then --if bossInfo is nil, means the combat isn't a boss + if ((attribute == 1 or attribute == 2) and bossInfo) then --if bossInfo is nil, means the combat isn't a boss local db = _detalhes.OpenStorage() if (db and bossInfo.id) then local haveData = _detalhes.storage:HaveDataForEncounter (diff, bossInfo.id, true) --attempt to index local 'bossInfo' (a nil value)