Overkill fixes

This commit is contained in:
Tercioo
2019-07-24 13:22:39 -03:00
parent 6fec19f4b5
commit 05d9f92ca1
3 changed files with 11 additions and 8 deletions
+6 -6
View File
File diff suppressed because one or more lines are too long
+2 -1
View File
@@ -235,7 +235,8 @@ function _detalhes:ToolTipDead (instancia, morte, esta_barra, keydown)
local overkill = event [10] or 0
if (overkill > 0) then
amount = amount - overkill
--overkill was being reduced twice, here and inside parser
--amount = amount - overkill
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 -1
View File
@@ -669,7 +669,9 @@
end
if (_is_in_instance) then
if (overkill and overkill > 0) then
amount = amount - overkill
--if enabled it'll cut the amount of overkill from the last hit (which killed the actor)
--when disabled it'll show the total damage done for the latest hit
--amount = amount - overkill
end
end