Only show the blizzard death recap inside dungeons and raids

This commit is contained in:
Tercio Jose
2022-05-05 12:57:59 -03:00
parent eb0e51e445
commit a71aae6c63
+9 -2
View File
@@ -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!