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