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
This commit is contained in:
Tercioo
2019-07-25 15:16:32 -03:00
parent 05d9f92ca1
commit b333731bd6
2 changed files with 10 additions and 2 deletions
+7 -2
View File
@@ -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
+3
View File
@@ -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