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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user