- fixed battleground segment creation bug.

This commit is contained in:
Tercio
2015-08-25 15:15:51 -03:00
parent 47dda54c2e
commit 7f0df36410
3 changed files with 9 additions and 14 deletions
+2 -2
View File
File diff suppressed because one or more lines are too long
-11
View File
@@ -403,17 +403,6 @@ function atributo_misc:ReportSingleDeadLine (morte, instancia)
end
_detalhes:SendReportWindow (ReportSingleDeathFunc, nil, nil, true)
--for index = #report_array, 1, -1 do
-- local table = report_array [index]
-- reportar [#reportar+1] = table [1] .. table [4] .. table [2] .. table [3]
--end
--for index, table in _ipairs (report_array) do
-- reportar [#reportar+1] = table [1] .. table [4] .. table [2] .. table [3]
--end
--return _detalhes:Reportar (reportar, {_no_current = true, _no_inverse = true, _custom = true})
end
function atributo_misc:ReportSingleCooldownLine (misc_actor, instancia)
+7 -1
View File
@@ -652,7 +652,13 @@
_detalhes.tabela_historico:adicionar (_detalhes.tabela_vigente) --move a tabela atual para dentro do histórico
else
invalid_combat = _detalhes.tabela_vigente
_detalhes.tabela_vigente = _detalhes.tabela_historico.tabelas[1] --> pega a tabela do ultimo combate
--in case of a forced discard segment, just check a second time if we have a previous combat.
if (not _detalhes.tabela_historico.tabelas[1]) then
_detalhes.tabela_vigente = _detalhes.tabela_vigente
else
_detalhes.tabela_vigente = _detalhes.tabela_historico.tabelas[1] --> pega a tabela do ultimo combate
end
if (_detalhes.tabela_vigente:GetStartTime() == 0) then
--_detalhes.tabela_vigente.start_time = _detalhes._tempo