This commit is contained in:
Tercio Jose
2022-08-10 17:41:13 -03:00
6 changed files with 31 additions and 9 deletions
+7 -6
View File
@@ -2290,7 +2290,7 @@
desc = "Show overall damage done on the fly.",
source = false,
target = false,
script_version = 7,
script_version = 8,
script = [[
--init:
local combat, instance_container, instance = ...
@@ -2353,12 +2353,13 @@
--overall
local player = OverallCombat [1]:GetActor (actor.nome)
playerTotal = playerTotal + player.total
local playerSpells = player:GetSpellList()
for spellID, spellTable in pairs (playerSpells) do
AllSpells [spellID] = spellTable.total
if (player) then
playerTotal = playerTotal + player.total
local playerSpells = player:GetSpellList()
for spellID, spellTable in pairs (playerSpells) do
AllSpells [spellID] = spellTable.total
end
end
--current
if (Details.in_combat) then
local player = CurrentCombat [1]:GetActor (actor.nome)
+5 -1
View File
@@ -398,7 +398,7 @@ function _detalhes:CheckFreeze (instancia, index_liberado, tabela)
end
end
function _detalhes:SetOverallResetOptions (reset_new_boss, reset_new_challenge, reset_on_logoff)
function _detalhes:SetOverallResetOptions (reset_new_boss, reset_new_challenge, reset_on_logoff, reset_new_pvp)
if (reset_new_boss == nil) then
reset_new_boss = _detalhes.overall_clear_newboss
end
@@ -408,10 +408,14 @@ function _detalhes:SetOverallResetOptions (reset_new_boss, reset_new_challenge,
if (reset_on_logoff == nil) then
reset_on_logoff = _detalhes.overall_clear_logout
end
if (reset_new_pvp == nil) then
reset_new_pvp = _detalhes.overall_clear_pvp
end
_detalhes.overall_clear_newboss = reset_new_boss
_detalhes.overall_clear_newchallenge = reset_new_challenge
_detalhes.overall_clear_logout = reset_on_logoff
_detalhes.overall_clear_pvp = reset_new_pvp
end
function historico:resetar_overall()