From b333731bd679d458645c3ab86035fd1837378134 Mon Sep 17 00:00:00 2001 From: Tercioo Date: Thu, 25 Jul 2019 15:16:32 -0300 Subject: [PATCH] Last damage now shows the damage - overkill by default. A command has been added to test the overkill without discouting the overkill damage from the last hit. /run Details.show_totalhitdamage_on_overkill = true --- classes/classe_others.lua | 9 +++++++-- functions/profiles.lua | 3 +++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/classes/classe_others.lua b/classes/classe_others.lua index 22c60ad6..00adcbbd 100644 --- a/classes/classe_others.lua +++ b/classes/classe_others.lua @@ -235,8 +235,13 @@ function _detalhes:ToolTipDead (instancia, morte, esta_barra, keydown) local overkill = event [10] or 0 if (overkill > 0) then - --overkill was being reduced twice, here and inside parser - --amount = amount - overkill + --check the type of overkill that should be shown + --if show_totalhitdamage_on_overkill is true it'll show the total damage of the hit + --if false it shows the total damage of the hit minus the overkill + if (not _detalhes.show_totalhitdamage_on_overkill) then + amount = amount - overkill + end + overkill = " (" .. _detalhes:ToK (overkill) .. " |cFFFF8800overkill|r)" GameCooltip:AddLine ("" .. _cstr ("%.1f", time - hora_da_morte) .. "s |cFFFFFF00" .. spellname .. "|r (|cFFC6B0D9" .. source .. "|r)", "-" .. _detalhes:ToK (amount) .. overkill .. " (" .. hp .. "%)", 1, "white", "white") else diff --git a/functions/profiles.lua b/functions/profiles.lua index 322261cc..a6912d2b 100644 --- a/functions/profiles.lua +++ b/functions/profiles.lua @@ -1272,6 +1272,9 @@ local default_global_data = { spell_school_cache = {}, global_plugin_database = {}, + --> death log + show_totalhitdamage_on_overkill = false, + --> switch tables switchSaved = {slots = 4, table = { {["atributo"] = 1, ["sub_atributo"] = 1}, --damage done