- 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
+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