From a71aae6c63df1db3305d39f36217642618cf356b Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Thu, 5 May 2022 12:57:59 -0300 Subject: [PATCH] Only show the blizzard death recap inside dungeons and raids --- functions/deathrecap.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/functions/deathrecap.lua b/functions/deathrecap.lua index 84cda2c9..5ba6a9a3 100644 --- a/functions/deathrecap.lua +++ b/functions/deathrecap.lua @@ -554,8 +554,9 @@ function Details.OpenDetailsDeathRecap (segment, RecapID, fromChat) if (amount > 1000) then --line.amount:SetText ("-" .. Details:ToK (amount)) - line.amount:SetText ("-" .. amount) + line.amount:SetText ("-" .. Details:comma_value(floor(amount))) else + --line.amount:SetText ("-" .. floor (amount)) line.amount:SetText ("-" .. floor (amount)) end @@ -627,8 +628,14 @@ hooksecurefunc (_G, "DeathRecap_LoadUI", function() local casterPrestige = evtData.casterPrestige local spellSchool = evtData.school + local spellId, spellName, texture = DeathRecapFrame_GetEventInfo(evtData) + local format = Details:GetCurrentToKFunction() + if (Details.death_recap.enabled) then - print("Blizzard DeathRecap: ", spellName, "amount:", amountDamage) + if (Details:GetZoneType() == "party" or Details:GetZoneType() == "raid") then + local msgText = "|TInterface\\FriendsFrame\\PlusManz-BattleNet:14:38:0:0:64:64:7:57:18:46|t|cFFAAAAFFDeath Recap:" + print(msgText, "|T" .. texture .. ":16:16:0:0:64:64:5:59:5:59|t", GetSpellLink(spellId) or spellName, format(_, amountDamage)) + end end --recap by Details!