- Second pass on Patch 8.0.1
This commit is contained in:
+21
-21
@@ -308,7 +308,7 @@
|
||||
--> internal functions
|
||||
-- _detalhes.statistics = {container_calls = 0, container_pet_calls = 0, container_unknow_pet = 0, damage_calls = 0, heal_calls = 0, absorbs_calls = 0, energy_calls = 0, pets_summons = 0}
|
||||
|
||||
-- ~start ~inicio ~novo ñovo
|
||||
-- ~start ~inicio ~novo �ovo
|
||||
function _detalhes:EntrarEmCombate (...)
|
||||
if (_detalhes.debug) then
|
||||
_detalhes:Msg ("(debug) |cFFFFFF00started a new combat|r|cFFFF7700", _detalhes.encounter_table and _detalhes.encounter_table.name or "")
|
||||
@@ -319,7 +319,7 @@
|
||||
if (not _detalhes.tabela_historico.tabelas[1]) then
|
||||
_detalhes.tabela_overall = _detalhes.combate:NovaTabela()
|
||||
|
||||
_detalhes:InstanciaCallFunction (_detalhes.ResetaGump, nil, -1) --> reseta scrollbar, iterators, rodapé, etc
|
||||
_detalhes:InstanciaCallFunction (_detalhes.ResetaGump, nil, -1) --> reseta scrollbar, iterators, rodap�, etc
|
||||
_detalhes:InstanciaCallFunction (_detalhes.InstanciaFadeBarras, -1) --> esconde todas as barras
|
||||
_detalhes:InstanciaCallFunction (_detalhes.AtualizaSegmentos) --> atualiza o showing
|
||||
end
|
||||
@@ -339,13 +339,13 @@
|
||||
_detalhes.tabela_vigente.previous_combat = ultimo_combate
|
||||
|
||||
_detalhes.tabela_vigente:seta_data (_detalhes._detalhes_props.DATA_TYPE_START) --seta na tabela do combate a data do inicio do combate -- setup time data
|
||||
_detalhes.in_combat = true --sinaliza ao addon que há um combate em andamento -- in combat flag up
|
||||
_detalhes.tabela_vigente.combat_id = n_combate --> grava o número deste combate na tabela atual -- setup combat id on new table
|
||||
_detalhes.in_combat = true --sinaliza ao addon que h� um combate em andamento -- in combat flag up
|
||||
_detalhes.tabela_vigente.combat_id = n_combate --> grava o n�mero deste combate na tabela atual -- setup combat id on new table
|
||||
_detalhes.last_combat_pre_pot_used = nil
|
||||
|
||||
_detalhes:FlagCurrentCombat()
|
||||
|
||||
--> é o timer que ve se o jogador ta em combate ou não -- check if any party or raid members are in combat
|
||||
--> � o timer que ve se o jogador ta em combate ou n�o -- check if any party or raid members are in combat
|
||||
_detalhes.tabela_vigente.verifica_combate = _detalhes:ScheduleRepeatingTimer ("EstaEmCombate", 1)
|
||||
|
||||
_detalhes:ClearCCPetsBlackList()
|
||||
@@ -501,7 +501,7 @@
|
||||
_detalhes.tabela_vigente.bossFunction = nil
|
||||
end
|
||||
|
||||
--> finaliza a checagem se esta ou não no combate -- finish combat check
|
||||
--> finaliza a checagem se esta ou n�o no combate -- finish combat check
|
||||
if (_detalhes.tabela_vigente.verifica_combate) then
|
||||
_detalhes:CancelTimer (_detalhes.tabela_vigente.verifica_combate)
|
||||
_detalhes.tabela_vigente.verifica_combate = nil
|
||||
@@ -735,7 +735,7 @@
|
||||
local invalid_combat
|
||||
|
||||
if ((tempo_do_combate >= _detalhes.minimum_combat_time or not _detalhes.tabela_historico.tabelas[1]) and not _detalhes.tabela_vigente.discard_segment) then
|
||||
_detalhes.tabela_historico:adicionar (_detalhes.tabela_vigente) --move a tabela atual para dentro do histórico
|
||||
_detalhes.tabela_historico:adicionar (_detalhes.tabela_vigente) --move a tabela atual para dentro do hist�rico
|
||||
|
||||
_detalhes:CanSendMissData()
|
||||
else
|
||||
@@ -762,7 +762,7 @@
|
||||
|
||||
if (_detalhes.solo) then
|
||||
local esta_instancia = _detalhes.tabela_instancias[_detalhes.solo]
|
||||
if (_detalhes.SoloTables.CombatID == _detalhes:NumeroCombate()) then --> significa que o solo mode validou o combate, como matar um bixo muito low level com uma só porrada
|
||||
if (_detalhes.SoloTables.CombatID == _detalhes:NumeroCombate()) then --> significa que o solo mode validou o combate, como matar um bixo muito low level com uma s� porrada
|
||||
if (_detalhes.SoloTables.CombatIDLast and _detalhes.SoloTables.CombatIDLast ~= 0) then --> volta os dados da luta anterior
|
||||
|
||||
_detalhes.SoloTables.CombatID = _detalhes.SoloTables.CombatIDLast
|
||||
@@ -918,7 +918,7 @@
|
||||
_detalhes:SairDoCombate()
|
||||
end
|
||||
|
||||
--> registra os gráficos
|
||||
--> registra os gr�ficos
|
||||
_detalhes:TimeDataRegister ("Your Team Damage", string_arena_myteam_damage, nil, "Details!", "v1.0", [[Interface\ICONS\Ability_DualWield]], true, true)
|
||||
_detalhes:TimeDataRegister ("Enemy Team Damage", string_arena_enemyteam_damage, nil, "Details!", "v1.0", [[Interface\ICONS\Ability_DualWield]], true, true)
|
||||
|
||||
@@ -928,7 +928,7 @@
|
||||
--> inicia um novo combate
|
||||
_detalhes:EntrarEmCombate()
|
||||
|
||||
--> sinaliza que esse combate é arena
|
||||
--> sinaliza que esse combate � arena
|
||||
_detalhes.tabela_vigente.arena = true
|
||||
_detalhes.tabela_vigente.is_arena = {name = _detalhes.zone_name, zone = _detalhes.zone_name, mapid = _detalhes.zone_id}
|
||||
|
||||
@@ -1538,15 +1538,15 @@
|
||||
|
||||
local GameCooltip = GameCooltip
|
||||
|
||||
local esta_barra = self.barras [qual_barra] --> barra que o mouse passou em cima e irá mostrar o tooltip
|
||||
local esta_barra = self.barras [qual_barra] --> barra que o mouse passou em cima e ir� mostrar o tooltip
|
||||
local objeto = esta_barra.minha_tabela --> pega a referencia da tabela --> retorna a classe_damage ou classe_heal
|
||||
if (not objeto) then --> a barra não possui um objeto
|
||||
if (not objeto) then --> a barra n�o possui um objeto
|
||||
return false
|
||||
end
|
||||
|
||||
--verifica por tooltips especiais:
|
||||
if (objeto.dead) then --> é uma barra de dead
|
||||
return _detalhes:ToolTipDead (self, objeto, esta_barra, keydown) --> instância, [morte], barra
|
||||
if (objeto.dead) then --> � uma barra de dead
|
||||
return _detalhes:ToolTipDead (self, objeto, esta_barra, keydown) --> inst�ncia, [morte], barra
|
||||
elseif (objeto.byspell) then
|
||||
return _detalhes:ToolTipBySpell (self, objeto, esta_barra, keydown)
|
||||
elseif (objeto.frags) then
|
||||
@@ -1555,7 +1555,7 @@
|
||||
return _detalhes:ToolTipVoidZones (self, objeto, esta_barra, keydown)
|
||||
end
|
||||
|
||||
local t = objeto:ToolTip (self, qual_barra, esta_barra, keydown) --> instância, nº barra, objeto barra, keydown
|
||||
local t = objeto:ToolTip (self, qual_barra, esta_barra, keydown) --> inst�ncia, n� barra, objeto barra, keydown
|
||||
|
||||
if (t) then
|
||||
|
||||
@@ -1597,7 +1597,7 @@
|
||||
end
|
||||
|
||||
function _detalhes:EsconderBarrasNaoUsadas (instancia, showing)
|
||||
--> primeira atualização após uma mudança de segmento --> verifica se há mais barras sendo mostradas do que o necessário
|
||||
--> primeira atualiza��o ap�s uma mudan�a de segmento --> verifica se h� mais barras sendo mostradas do que o necess�rio
|
||||
--------------------
|
||||
if (instancia.v_barras) then
|
||||
--print ("mostrando", instancia.rows_showing, instancia.rows_created)
|
||||
@@ -1629,7 +1629,7 @@
|
||||
|
||||
local tabela_do_combate = self.showing
|
||||
|
||||
--> confere se a instância possui uma tabela válida
|
||||
--> confere se a inst�ncia possui uma tabela v�lida
|
||||
if (not tabela_do_combate) then
|
||||
if (not self.freezed) then
|
||||
return self:Freeze()
|
||||
@@ -1639,7 +1639,7 @@
|
||||
|
||||
local need_refresh = tabela_do_combate[self.atributo].need_refresh
|
||||
if (not need_refresh and not forcar) then
|
||||
return --> não precisa de refresh
|
||||
return --> n�o precisa de refresh
|
||||
--else
|
||||
--tabela_do_combate[self.atributo].need_refresh = false
|
||||
end
|
||||
@@ -1664,7 +1664,7 @@
|
||||
|
||||
function _detalhes:AtualizaGumpPrincipal (instancia, forcar)
|
||||
|
||||
if (not instancia or type (instancia) == "boolean") then --> o primeiro parâmetro não foi uma instância ou ALL
|
||||
if (not instancia or type (instancia) == "boolean") then --> o primeiro par�metro n�o foi uma inst�ncia ou ALL
|
||||
forcar = instancia
|
||||
instancia = self
|
||||
end
|
||||
@@ -1684,7 +1684,7 @@
|
||||
end
|
||||
end
|
||||
|
||||
--> marcar que não precisa ser atualizada
|
||||
--> marcar que n�o precisa ser atualizada
|
||||
for index, esta_instancia in _ipairs (_detalhes.tabela_instancias) do
|
||||
if (esta_instancia.ativa and esta_instancia.showing) then
|
||||
if (esta_instancia.modo == modo_GROUP or esta_instancia.modo == modo_ALL) then
|
||||
@@ -1695,7 +1695,7 @@
|
||||
end
|
||||
end
|
||||
|
||||
if (not forcar) then --atualizar o gump de detalhes também se ele estiver aberto
|
||||
if (not forcar) then --atualizar o gump de detalhes tamb�m se ele estiver aberto
|
||||
if (info.ativo) then
|
||||
return info.jogador:MontaInfo()
|
||||
end
|
||||
|
||||
+12
-12
@@ -40,7 +40,7 @@
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--> core
|
||||
|
||||
--> reconstrói o mapa do container
|
||||
--> reconstr�i o mapa do container
|
||||
local function ReconstroiMapa (tabela)
|
||||
local mapa = {}
|
||||
for i = 1, #tabela._ActorTable do
|
||||
@@ -116,7 +116,7 @@
|
||||
|
||||
_detalhes.refresh:r_atributo_custom()
|
||||
|
||||
--> container de pets e histórico
|
||||
--> container de pets e hist�rico
|
||||
_detalhes.refresh:r_container_pets (_detalhes.tabela_pets)
|
||||
_detalhes.refresh:r_historico (_detalhes.tabela_historico)
|
||||
|
||||
@@ -150,7 +150,7 @@
|
||||
|
||||
local is_in_instance = select (1, IsInInstance())
|
||||
|
||||
--> inicia a recuperação das tabelas e montagem do overall
|
||||
--> inicia a recupera��o das tabelas e montagem do overall
|
||||
if (#tabelas_do_historico > 0) then
|
||||
for index, combate in _ipairs (tabelas_do_historico) do
|
||||
|
||||
@@ -246,7 +246,7 @@
|
||||
end
|
||||
end
|
||||
|
||||
--> reconstrói a tabela dos pets
|
||||
--> reconstr�i a tabela dos pets
|
||||
for class_type, atributo in _ipairs (todos_atributos) do
|
||||
for _, esta_classe in _ipairs (atributo) do
|
||||
if (esta_classe.ownerName) then --> nome do owner
|
||||
@@ -522,7 +522,7 @@
|
||||
for class_type, _tabela in _ipairs (todos_atributos) do
|
||||
local conteudo = _tabela._ActorTable
|
||||
|
||||
--> Limpa tabelas que não estejam em grupo
|
||||
--> Limpa tabelas que n�o estejam em grupo
|
||||
if (conteudo) then
|
||||
if (_detalhes.clear_ungrouped) then
|
||||
--if (not _detalhes.clear_ungrouped) then
|
||||
@@ -598,11 +598,11 @@
|
||||
|
||||
local conteudo = _tabela._ActorTable
|
||||
|
||||
--> Limpa tabelas que não estejam em grupo
|
||||
--> Limpa tabelas que n�o estejam em grupo
|
||||
if (conteudo) then
|
||||
|
||||
if (_detalhes.clear_ungrouped) then
|
||||
--não deleta dummies e actors de fora do grupo
|
||||
--n�o deleta dummies e actors de fora do grupo
|
||||
--if (not _detalhes.clear_ungrouped) then
|
||||
|
||||
local _iter = {index = 1, data = conteudo[1], cleaned = 0} --> ._ActorTable[1] para pegar o primeiro index
|
||||
@@ -657,7 +657,7 @@
|
||||
_combate.totals_grupo [myself.tipo] ["ress"] = _combate.totals_grupo [myself.tipo] ["ress"] - myself.ress
|
||||
end
|
||||
end
|
||||
--> não precisa diminuir o total dos buffs e debuffs
|
||||
--> n�o precisa diminuir o total dos buffs e debuffs
|
||||
if (myself.cooldowns_defensive) then
|
||||
_combate.totals [myself.tipo] ["cooldowns_defensive"] = _combate.totals [myself.tipo] ["cooldowns_defensive"] - myself.cooldowns_defensive
|
||||
if (myself.grupo) then
|
||||
@@ -797,7 +797,7 @@
|
||||
--> reseta o cache do parser
|
||||
_detalhes:ClearParserCache()
|
||||
|
||||
--> limpa barras que não estão sendo usadas nas instâncias.
|
||||
--> limpa barras que n�o est�o sendo usadas nas inst�ncias.
|
||||
for index, instancia in _ipairs (_detalhes.tabela_instancias) do
|
||||
if (instancia.barras and instancia.barras [1]) then
|
||||
for i, barra in _ipairs (instancia.barras) do
|
||||
@@ -938,7 +938,7 @@
|
||||
limpados = limpados + FazColeta (_combate, tipo, lastevent)
|
||||
end
|
||||
|
||||
--> limpa a tabela overall para o atributo atual (limpa para os 4, um de cada vez através do ipairs)
|
||||
--> limpa a tabela overall para o atributo atual (limpa para os 4, um de cada vez atrav�s do ipairs)
|
||||
local _overall_combat = _detalhes.tabela_overall
|
||||
local conteudo = _overall_combat [tipo]._ActorTable
|
||||
local _iter = {index = 1, data = conteudo[1], cleaned = 0} --> ._ActorTable[1] para pegar o primeiro index
|
||||
@@ -952,13 +952,13 @@
|
||||
can_garbage = true
|
||||
end
|
||||
|
||||
if (can_garbage) then --> não há referências a este objeto
|
||||
if (can_garbage) then --> n�o h� refer�ncias a este objeto
|
||||
|
||||
if (not _actor.owner) then --> pet
|
||||
_actor:subtract_total (_overall_combat)
|
||||
end
|
||||
|
||||
--> apaga a referência deste jogador na tabela overall
|
||||
--> apaga a refer�ncia deste jogador na tabela overall
|
||||
_iter.cleaned = _iter.cleaned+1
|
||||
|
||||
_table_remove (conteudo, _iter.index)
|
||||
|
||||
+2
-2
@@ -699,7 +699,7 @@
|
||||
end
|
||||
end
|
||||
|
||||
--> entrar no canal após logar no servidor
|
||||
--> entrar no canal ap�s logar no servidor
|
||||
function _detalhes:EnterChatChannel()
|
||||
if (not _detalhes.realm_sync or not CONST_REALM_SYNC_ENABLED) then
|
||||
return
|
||||
@@ -816,4 +816,4 @@
|
||||
end
|
||||
end
|
||||
return _detalhes.is_connected
|
||||
end
|
||||
end
|
||||
|
||||
+97
-97
@@ -327,7 +327,7 @@
|
||||
--> early checks and fixes
|
||||
|
||||
if (who_serial == "") then
|
||||
if (who_flags and _bit_band (who_flags, OBJECT_TYPE_PETS) ~= 0) then --> é um pet
|
||||
if (who_flags and _bit_band (who_flags, OBJECT_TYPE_PETS) ~= 0) then --> � um pet
|
||||
--> pets must have a serial
|
||||
return
|
||||
end
|
||||
@@ -447,7 +447,7 @@
|
||||
(not _detalhes.in_group and who_flags and _bit_band (who_flags, AFFILIATION_GROUP) ~= 0)
|
||||
)
|
||||
) then
|
||||
--> não entra em combate se for DOT
|
||||
--> n�o entra em combate se for DOT
|
||||
if (_detalhes.encounter_table.id and _detalhes.encounter_table ["start"] >= _GetTime() - 3 and _detalhes.announce_firsthit.enabled) then
|
||||
local link
|
||||
if (spellid <= 10) then
|
||||
@@ -464,7 +464,7 @@
|
||||
end
|
||||
_detalhes:EntrarEmCombate (who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags)
|
||||
else
|
||||
--> entrar em combate se for dot e for do jogador e o ultimo combate ter sido a mais de 10 segundos atrás
|
||||
--> entrar em combate se for dot e for do jogador e o ultimo combate ter sido a mais de 10 segundos atr�s
|
||||
if (token == "SPELL_PERIODIC_DAMAGE" and who_name == _detalhes.playername) then
|
||||
--> ignora burning rush se o jogador estiver fora de combate
|
||||
if (spellid == 111400) then
|
||||
@@ -492,17 +492,17 @@
|
||||
|
||||
este_jogador, meu_dono, who_name = _current_damage_container:PegarCombatente (who_serial, who_name, who_flags, true)
|
||||
|
||||
if (meu_dono) then --> é um pet
|
||||
if (meu_dono) then --> � um pet
|
||||
if (who_serial ~= "") then
|
||||
damage_cache_pets [who_serial] = este_jogador
|
||||
damage_cache_petsOwners [who_serial] = meu_dono
|
||||
end
|
||||
--conferir se o dono já esta no cache
|
||||
--conferir se o dono j� esta no cache
|
||||
if (not damage_cache [meu_dono.serial] and meu_dono.serial ~= "") then
|
||||
damage_cache [meu_dono.serial] = meu_dono
|
||||
end
|
||||
else
|
||||
if (who_flags) then --> ter certeza que não é um pet
|
||||
if (who_flags) then --> ter certeza que n�o � um pet
|
||||
if (who_serial ~= "") then
|
||||
damage_cache [who_serial] = este_jogador
|
||||
else
|
||||
@@ -519,7 +519,7 @@
|
||||
end
|
||||
|
||||
elseif (meu_dono) then
|
||||
--> é um pet
|
||||
--> � um pet
|
||||
who_name = who_name .. " <" .. meu_dono.nome .. ">"
|
||||
end
|
||||
|
||||
@@ -535,18 +535,18 @@
|
||||
damage_cache_pets [alvo_serial] = jogador_alvo
|
||||
damage_cache_petsOwners [alvo_serial] = alvo_dono
|
||||
end
|
||||
--conferir se o dono já esta no cache
|
||||
--conferir se o dono j� esta no cache
|
||||
if (not damage_cache [alvo_dono.serial] and alvo_dono.serial ~= "") then
|
||||
damage_cache [alvo_dono.serial] = alvo_dono
|
||||
end
|
||||
else
|
||||
if (alvo_flags and alvo_serial ~= "") then --> ter certeza que não é um pet
|
||||
if (alvo_flags and alvo_serial ~= "") then --> ter certeza que n�o � um pet
|
||||
damage_cache [alvo_serial] = jogador_alvo
|
||||
end
|
||||
end
|
||||
|
||||
elseif (alvo_dono) then
|
||||
--> é um pet
|
||||
--> � um pet
|
||||
alvo_name = alvo_name .. " <" .. alvo_dono.nome .. ">"
|
||||
|
||||
end
|
||||
@@ -723,8 +723,8 @@
|
||||
return
|
||||
end
|
||||
|
||||
--> record death log (o erro era o pet, não tinha tabela então dava erro)
|
||||
if (este_jogador.grupo) then --> se tiver ele não adiciona o evento lá em cima
|
||||
--> record death log (o erro era o pet, n�o tinha tabela ent�o dava erro)
|
||||
if (este_jogador.grupo) then --> se tiver ele n�o adiciona o evento l� em cima
|
||||
local t = last_events_cache [alvo_name]
|
||||
|
||||
if (not t) then
|
||||
@@ -840,17 +840,17 @@
|
||||
|
||||
if (not este_jogador) then --> pode ser um desconhecido ou um pet
|
||||
este_jogador, meu_dono, who_name = _current_damage_container:PegarCombatente (who_serial, who_name, who_flags, true)
|
||||
if (meu_dono) then --> é um pet
|
||||
if (meu_dono) then --> � um pet
|
||||
if (who_serial ~= "") then
|
||||
damage_cache_pets [who_serial] = este_jogador
|
||||
damage_cache_petsOwners [who_serial] = meu_dono
|
||||
end
|
||||
--conferir se o dono já esta no cache
|
||||
--conferir se o dono j� esta no cache
|
||||
if (not damage_cache [meu_dono.serial] and meu_dono.serial ~= "") then
|
||||
damage_cache [meu_dono.serial] = meu_dono
|
||||
end
|
||||
else
|
||||
if (who_flags) then --> ter certeza que não é um pet
|
||||
if (who_flags) then --> ter certeza que n�o � um pet
|
||||
if (who_serial ~= "") then
|
||||
damage_cache [who_serial] = este_jogador
|
||||
else
|
||||
@@ -867,7 +867,7 @@
|
||||
end
|
||||
|
||||
elseif (meu_dono) then
|
||||
--> é um pet
|
||||
--> � um pet
|
||||
who_name = who_name .. " <" .. meu_dono.nome .. ">"
|
||||
end
|
||||
|
||||
@@ -981,17 +981,17 @@
|
||||
|
||||
este_jogador, meu_dono, who_name = _current_damage_container:PegarCombatente (who_serial, who_name, who_flags, true)
|
||||
|
||||
if (meu_dono) then --> é um pet
|
||||
if (meu_dono) then --> � um pet
|
||||
if (who_serial ~= "") then
|
||||
damage_cache_pets [who_serial] = este_jogador
|
||||
damage_cache_petsOwners [who_serial] = meu_dono
|
||||
end
|
||||
--conferir se o dono já esta no cache
|
||||
--conferir se o dono j� esta no cache
|
||||
if (not damage_cache [meu_dono.serial] and meu_dono.serial ~= "") then
|
||||
damage_cache [meu_dono.serial] = meu_dono
|
||||
end
|
||||
else
|
||||
if (who_flags) then --> ter certeza que não é um pet
|
||||
if (who_flags) then --> ter certeza que n�o � um pet
|
||||
if (who_serial ~= "") then
|
||||
damage_cache [who_serial] = este_jogador
|
||||
else
|
||||
@@ -1008,7 +1008,7 @@
|
||||
end
|
||||
|
||||
elseif (meu_dono) then
|
||||
--> é um pet
|
||||
--> � um pet
|
||||
who_name = who_name .. " <" .. meu_dono.nome .. ">"
|
||||
end
|
||||
|
||||
@@ -1024,18 +1024,18 @@
|
||||
damage_cache_pets [alvo_serial] = jogador_alvo
|
||||
damage_cache_petsOwners [alvo_serial] = alvo_dono
|
||||
end
|
||||
--conferir se o dono já esta no cache
|
||||
--conferir se o dono j� esta no cache
|
||||
if (not damage_cache [alvo_dono.serial] and alvo_dono.serial ~= "") then
|
||||
damage_cache [alvo_dono.serial] = alvo_dono
|
||||
end
|
||||
else
|
||||
if (alvo_flags and alvo_serial ~= "") then --> ter certeza que não é um pet
|
||||
if (alvo_flags and alvo_serial ~= "") then --> ter certeza que n�o � um pet
|
||||
damage_cache [alvo_serial] = jogador_alvo
|
||||
end
|
||||
end
|
||||
|
||||
elseif (alvo_dono) then
|
||||
--> é um pet
|
||||
--> � um pet
|
||||
alvo_name = alvo_name .. " <" .. alvo_dono.nome .. ">"
|
||||
end
|
||||
|
||||
@@ -1084,7 +1084,7 @@
|
||||
end
|
||||
|
||||
function parser:rangemissed (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, spelltype, missType, isOffHand, amountMissed) --, isOffHand, amountMissed, arg1
|
||||
return parser:missed (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, 2, "Tiro-Automático", 00000001, missType, isOffHand, amountMissed) --, isOffHand, amountMissed, arg1
|
||||
return parser:missed (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, 2, "Tiro-Autom�tico", 00000001, missType, isOffHand, amountMissed) --, isOffHand, amountMissed, arg1
|
||||
end
|
||||
|
||||
-- ~miss
|
||||
@@ -1240,7 +1240,7 @@
|
||||
|
||||
--> pet summon another pet
|
||||
local sou_pet = container_pets [who_serial]
|
||||
if (sou_pet) then --> okey, ja é um pet
|
||||
if (sou_pet) then --> okey, ja � um pet
|
||||
who_name, who_serial, who_flags = sou_pet[1], sou_pet[2], sou_pet[3]
|
||||
end
|
||||
|
||||
@@ -1300,7 +1300,7 @@
|
||||
|
||||
--> check invalid serial against pets
|
||||
if (who_serial == "") then
|
||||
if (who_flags and _bit_band (who_flags, OBJECT_TYPE_PETS) ~= 0) then --> é um pet
|
||||
if (who_flags and _bit_band (who_flags, OBJECT_TYPE_PETS) ~= 0) then --> � um pet
|
||||
return
|
||||
end
|
||||
end
|
||||
@@ -1337,7 +1337,7 @@
|
||||
local este_jogador, meu_dono = healing_cache [who_name]
|
||||
if (not este_jogador) then --> pode ser um desconhecido ou um pet
|
||||
este_jogador, meu_dono, who_name = _current_heal_container:PegarCombatente (who_serial, who_name, who_flags, true)
|
||||
if (not meu_dono and who_flags) then --> se não for um pet, adicionar no cache
|
||||
if (not meu_dono and who_flags) then --> se n�o for um pet, adicionar no cache
|
||||
healing_cache [who_name] = este_jogador
|
||||
end
|
||||
end
|
||||
@@ -1376,10 +1376,10 @@
|
||||
1 toekn SPELL_HEAL_ABSORBED
|
||||
2 time 1493837437.157
|
||||
3 who serial Player-3209-0514A56A
|
||||
4 who name Bombadão
|
||||
4 who name Bombad�o
|
||||
5 who flags 1297
|
||||
6 alvo serial Player-3209-0514A56A
|
||||
7 alvo name Bombadão
|
||||
7 alvo name Bombad�o
|
||||
8 alvo flags 1297
|
||||
9 alvo flags2 0
|
||||
10 spellid 116888
|
||||
@@ -1387,29 +1387,29 @@
|
||||
12 school 12
|
||||
|
||||
13 GUID - Player-3209-0514A56A
|
||||
14 PLAYERNAME - Bombadão
|
||||
14 PLAYERNAME - Bombad�o
|
||||
15 FLAGS 1297
|
||||
16 FLAGS2 0
|
||||
17 SPELLID 116888
|
||||
18 SPELLNAME Healing Potion
|
||||
19 ? 1
|
||||
20 ? 2677
|
||||
primeiro actor é o quem comandou o absorb
|
||||
o segundo é a vitima seguido da magia que o primeiro actor usou pra o absorb
|
||||
o terceiro é a vitima com a magia que ela usou e foi absorvida
|
||||
primeiro actor � o quem comandou o absorb
|
||||
o segundo � a vitima seguido da magia que o primeiro actor usou pra o absorb
|
||||
o terceiro � a vitima com a magia que ela usou e foi absorvida
|
||||
5/3 11:54:58.346 SPELL_HEAL_ABSORBED,
|
||||
Player-3209-051429E9,"Mephisstoo-Azralon",0x10548,0x0,Player-3209-05144527,"Keyspell-Azralon",0x511,0x0,223929,"Necrotic Wound",0x28,Player-3209-05144527,"Keyspell-Azralon",0x511,0x0,188016,"Ancient Healing Potion",0x1,254466
|
||||
|
||||
--heal pot spellID: 28495 - heal 2841
|
||||
|
||||
1 SPELL_HEAL_ABSORBED 2 1493837944.856 3 Player-3209-0514A56A 4 Bombadão 5 1297 6 Player-3209-0514A56A 7 Bombadão 8 1297 9 0 10 116888 11 Shroud of Purgatory 12 32 13 Player-3209-0514A56A 14 Bombadão 15 1297 16 0 17 116888 18 Healing Potion 19 1 20 1860 21 nil 22 nil 23 nil 24 nil 25 nil 26 nil 27 nil
|
||||
1 SPELL_HEAL_ABSORBED 2 1493837944.856 3 Player-3209-0514A56A 4 Bombad�o 5 1297 6 Player-3209-0514A56A 7 Bombad�o 8 1297 9 0 10 116888 11 Shroud of Purgatory 12 32 13 Player-3209-0514A56A 14 Bombad�o 15 1297 16 0 17 116888 18 Healing Potion 19 1 20 1860 21 nil 22 nil 23 nil 24 nil 25 nil 26 nil 27 nil
|
||||
|
||||
1 SPELL_HEAL_ABSORBED 2 1493839447.257 3 Player-3209-0514A56A 4 Bombadão 5 1297 6 Player-3209-0514A56A 7 Bombadão 8 1297 9 0 10 nil 11 nil 12 nil 13 Player-3209-05DE3E42 14 Yakumile 15 1298 16 0 17 116888 18 Holy Word: Serenity 19 2 20 2690 21 nil 22 nil
|
||||
1 SPELL_HEAL_ABSORBED 2 1493839447.257 3 Player-3209-0514A56A 4 Bombad�o 5 1297 6 Player-3209-0514A56A 7 Bombad�o 8 1297 9 0 10 nil 11 nil 12 nil 13 Player-3209-05DE3E42 14 Yakumile 15 1298 16 0 17 116888 18 Holy Word: Serenity 19 2 20 2690 21 nil 22 nil
|
||||
|
||||
1 SPELL_HEAL_ABSORBED 2 1493840761.019 3 Player-3209-0514A56A 4 Bombadão 5 1297 6 Player-3209-0514A56A 7 Bombadão 8 1297 9 0 10 nil 11 nil 12 nil 13 Player-57-06AB4689 14 Yakumile 15 1298 16 0 17 116888 18 Circle of Healing 19 2 20 673 21 nil 22 nil 23 nil 24 nil 25 nil 26 nil 27 nil
|
||||
1 SPELL_HEAL_ABSORBED 2 1493840761.019 3 Player-3209-0514A56A 4 Bombad�o 5 1297 6 Player-3209-0514A56A 7 Bombad�o 8 1297 9 0 10 nil 11 nil 12 nil 13 Player-57-06AB4689 14 Yakumile 15 1298 16 0 17 116888 18 Circle of Healing 19 2 20 673 21 nil 22 nil 23 nil 24 nil 25 nil 26 nil 27 nil
|
||||
|
||||
oken: SPELL_HEAL_ABSORBED ime: 1493841853.862 |whoserial: Player-3209-0514A56A |whoname: Bombadão |whoflags: 1297 |alvoserial: Player-3209-0514A56A |alvoname: Bombadão |alvoflags 1297 |alvoflags2: 0 |spellidAbsorb: 116888 |spellnameABsorb Shroud of Purgatory |spellschoolAbsorb 32 |serialhealer: Player-3209-0514A56A
|
||||
ameHealer: Bombadão |flagsHealer: 1297 |flagsHealer2: 0 |spellidHeal: 116888 |spellnameHeal: Healing Potion ypeHeal: 1 |amountDenied: 870
|
||||
oken: SPELL_HEAL_ABSORBED ime: 1493841853.862 |whoserial: Player-3209-0514A56A |whoname: Bombad�o |whoflags: 1297 |alvoserial: Player-3209-0514A56A |alvoname: Bombad�o |alvoflags 1297 |alvoflags2: 0 |spellidAbsorb: 116888 |spellnameABsorb Shroud of Purgatory |spellschoolAbsorb 32 |serialhealer: Player-3209-0514A56A
|
||||
ameHealer: Bombad�o |flagsHealer: 1297 |flagsHealer2: 0 |spellidHeal: 116888 |spellnameHeal: Healing Potion ypeHeal: 1 |amountDenied: 870
|
||||
|
||||
--]]
|
||||
end
|
||||
@@ -1451,7 +1451,7 @@ ameHealer: Bombad
|
||||
end
|
||||
end
|
||||
|
||||
--> chamar a função de cura pra contar a cura
|
||||
--> chamar a fun��o de cura pra contar a cura
|
||||
return parser:heal (token, time, owner_serial, owner_name, owner_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, shieldid, shieldname, shieldtype, amount, 0, 0, nil, true)
|
||||
|
||||
end
|
||||
@@ -1468,7 +1468,7 @@ ameHealer: Bombad
|
||||
|
||||
--> check invalid serial against pets
|
||||
if (who_serial == "") then
|
||||
if (who_flags and _bit_band (who_flags, OBJECT_TYPE_PETS) ~= 0) then --> é um pet
|
||||
if (who_flags and _bit_band (who_flags, OBJECT_TYPE_PETS) ~= 0) then --> � um pet
|
||||
return
|
||||
end
|
||||
--who_serial = nil
|
||||
@@ -1513,7 +1513,7 @@ ameHealer: Bombad
|
||||
local este_jogador, meu_dono = healing_cache [who_name]
|
||||
if (not este_jogador) then --> pode ser um desconhecido ou um pet
|
||||
este_jogador, meu_dono, who_name = _current_heal_container:PegarCombatente (who_serial, who_name, who_flags, true)
|
||||
if (not meu_dono and who_flags) then --> se não for um pet, adicionar no cache
|
||||
if (not meu_dono and who_flags) then --> se n�o for um pet, adicionar no cache
|
||||
healing_cache [who_name] = este_jogador
|
||||
end
|
||||
end
|
||||
@@ -1682,7 +1682,7 @@ ameHealer: Bombad
|
||||
local este_jogador, meu_dono = healing_cache [who_name]
|
||||
if (not este_jogador) then --> pode ser um desconhecido ou um pet
|
||||
este_jogador, meu_dono, who_name = _current_heal_container:PegarCombatente (who_serial, who_name, who_flags, true)
|
||||
if (not meu_dono and who_flags) then --> se não for um pet, adicionar no cache
|
||||
if (not meu_dono and who_flags) then --> se n�o for um pet, adicionar no cache
|
||||
healing_cache [who_name] = este_jogador
|
||||
end
|
||||
end
|
||||
@@ -1823,7 +1823,7 @@ ameHealer: Bombad
|
||||
--> call record debuffs uptime
|
||||
parser:add_debuff_uptime (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, "DEBUFF_UPTIME_IN")
|
||||
|
||||
elseif (raid_members_cache [alvo_serial] and not raid_members_cache [who_serial]) then --> alvo é da raide e who é alguem de fora da raide
|
||||
elseif (raid_members_cache [alvo_serial] and not raid_members_cache [who_serial]) then --> alvo � da raide e who � alguem de fora da raide
|
||||
parser:add_bad_debuff_uptime (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, spellschool, "DEBUFF_UPTIME_IN")
|
||||
end
|
||||
end
|
||||
@@ -1910,7 +1910,7 @@ ameHealer: Bombad
|
||||
local este_jogador, meu_dono = misc_cache [who_name]
|
||||
if (not este_jogador) then --> pode ser um desconhecido ou um pet
|
||||
este_jogador, meu_dono, who_name = _current_misc_container:PegarCombatente (who_serial, who_name, who_flags, true)
|
||||
if (not meu_dono) then --> se não for um pet, adicionar no cache
|
||||
if (not meu_dono) then --> se n�o for um pet, adicionar no cache
|
||||
misc_cache [who_name] = este_jogador
|
||||
end
|
||||
end
|
||||
@@ -2008,11 +2008,11 @@ ameHealer: Bombad
|
||||
if (escudo [alvo_name] and escudo [alvo_name][spellid] and escudo [alvo_name][spellid][who_name]) then
|
||||
|
||||
if (ignored_overheal [spellid]) then
|
||||
escudo [alvo_name][spellid][who_name] = amount -- refresh já vem o valor atualizado
|
||||
escudo [alvo_name][spellid][who_name] = amount -- refresh j� vem o valor atualizado
|
||||
return
|
||||
end
|
||||
|
||||
--escudo antigo é dropado, novo é posto
|
||||
--escudo antigo � dropado, novo � posto
|
||||
local overheal = escudo [alvo_name][spellid][who_name]
|
||||
escudo [alvo_name][spellid][who_name] = amount
|
||||
|
||||
@@ -2028,7 +2028,7 @@ ameHealer: Bombad
|
||||
--return parser:heal (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, spellid, spellname, nil, _math_ceil (absorb), _math_ceil (overheal), 0, 0, nil, true)
|
||||
--end
|
||||
else
|
||||
-- escudo não encontrado :(
|
||||
-- escudo n�o encontrado :(
|
||||
end
|
||||
|
||||
------------------------------------------------------------------------------------------------
|
||||
@@ -2058,7 +2058,7 @@ ameHealer: Bombad
|
||||
if (raid_members_cache [who_serial]) then
|
||||
--> call record debuffs uptime
|
||||
parser:add_debuff_uptime (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, "DEBUFF_UPTIME_REFRESH")
|
||||
elseif (raid_members_cache [alvo_serial] and not raid_members_cache [who_serial]) then --> alvo é da raide e o caster é inimigo
|
||||
elseif (raid_members_cache [alvo_serial] and not raid_members_cache [who_serial]) then --> alvo � da raide e o caster � inimigo
|
||||
parser:add_bad_debuff_uptime (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, spellschool, "DEBUFF_UPTIME_REFRESH", amount)
|
||||
end
|
||||
end
|
||||
@@ -2154,7 +2154,7 @@ ameHealer: Bombad
|
||||
if (absorb_spell_list [spellid] and _recording_healing) then
|
||||
if (escudo [alvo_name] and escudo [alvo_name][spellid] and escudo [alvo_name][spellid][who_name]) then
|
||||
if (amount) then
|
||||
-- o amount é o que sobrou do escudo
|
||||
-- o amount � o que sobrou do escudo
|
||||
|
||||
local overheal = escudo [alvo_name][spellid][who_name]
|
||||
escudo [alvo_name][spellid][who_name] = 0
|
||||
@@ -2174,7 +2174,7 @@ ameHealer: Bombad
|
||||
|
||||
--escudo [alvo_name][spellid][who_name] = nil
|
||||
|
||||
--return parser:heal (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, spellid, spellname, nil, _math_ceil (absorb), _math_ceil (overheal), 0, 0, nil, true) --> último parametro IS_SHIELD
|
||||
--return parser:heal (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, spellid, spellname, nil, _math_ceil (absorb), _math_ceil (overheal), 0, 0, nil, true) --> �ltimo parametro IS_SHIELD
|
||||
end
|
||||
escudo [alvo_name][spellid][who_name] = 0
|
||||
end
|
||||
@@ -2205,7 +2205,7 @@ ameHealer: Bombad
|
||||
if (raid_members_cache [who_serial]) then
|
||||
--> call record debuffs uptime
|
||||
parser:add_debuff_uptime (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, "DEBUFF_UPTIME_OUT")
|
||||
elseif (raid_members_cache [alvo_serial] and not raid_members_cache [who_serial]) then --> alvo é da raide e o caster é inimigo
|
||||
elseif (raid_members_cache [alvo_serial] and not raid_members_cache [who_serial]) then --> alvo � da raide e o caster � inimigo
|
||||
parser:add_bad_debuff_uptime (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, spellschool, "DEBUFF_UPTIME_OUT")
|
||||
end
|
||||
end
|
||||
@@ -2263,7 +2263,7 @@ ameHealer: Bombad
|
||||
|
||||
------------------------------------------------------------------------------------------------
|
||||
--> get actors
|
||||
--> nome do debuff será usado para armazenar o nome do ator
|
||||
--> nome do debuff ser� usado para armazenar o nome do ator
|
||||
local este_jogador = misc_cache [spellname]
|
||||
if (not este_jogador) then --> pode ser um desconhecido ou um pet
|
||||
este_jogador = _current_misc_container:PegarCombatente (who_serial, spellname, who_flags, true)
|
||||
@@ -2679,7 +2679,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
if (meu_dono) then
|
||||
meu_dono.powertype = powertype
|
||||
end
|
||||
if (not meu_dono) then --> se não for um pet, adicionar no cache
|
||||
if (not meu_dono) then --> se n�o for um pet, adicionar no cache
|
||||
energy_cache [who_name] = este_jogador
|
||||
end
|
||||
end
|
||||
@@ -2770,7 +2770,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
local este_jogador, meu_dono = misc_cache [who_name]
|
||||
if (not este_jogador) then --> pode ser um desconhecido ou um pet
|
||||
este_jogador, meu_dono, who_name = _current_misc_container:PegarCombatente (who_serial, who_name, who_flags, true)
|
||||
if (not meu_dono) then --> se não for um pet, adicionar no cache
|
||||
if (not meu_dono) then --> se n�o for um pet, adicionar no cache
|
||||
misc_cache [who_name] = este_jogador
|
||||
end
|
||||
end
|
||||
@@ -2800,7 +2800,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
local damage_actor = damage_cache [who_serial]
|
||||
if (not damage_actor) then --> pode ser um desconhecido ou um pet
|
||||
damage_actor = _current_damage_container:PegarCombatente (who_serial, who_name, who_flags, true)
|
||||
if (who_flags) then --> se não for um pet, adicionar no cache
|
||||
if (who_flags) then --> se n�o for um pet, adicionar no cache
|
||||
damage_cache [who_serial] = damage_actor
|
||||
end
|
||||
end
|
||||
@@ -2879,7 +2879,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
local este_jogador, meu_dono = misc_cache [who_name]
|
||||
if (not este_jogador) then --> pode ser um desconhecido ou um pet
|
||||
este_jogador, meu_dono, who_name = _current_misc_container:PegarCombatente (who_serial, who_name, who_flags, true)
|
||||
if (not meu_dono) then --> se não for um pet, adicionar no cache
|
||||
if (not meu_dono) then --> se n�o for um pet, adicionar no cache
|
||||
misc_cache [who_name] = este_jogador
|
||||
end
|
||||
end
|
||||
@@ -2984,7 +2984,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
local este_jogador = misc_cache [who_name]
|
||||
if (not este_jogador) then
|
||||
este_jogador, meu_dono, who_name = _current_misc_container:PegarCombatente (who_serial, who_name, who_flags, true)
|
||||
if (not meu_dono) then --> se não for um pet, adicionar no cache
|
||||
if (not meu_dono) then --> se n�o for um pet, adicionar no cache
|
||||
misc_cache [who_name] = este_jogador
|
||||
end
|
||||
end
|
||||
@@ -3046,7 +3046,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
------------------------------------------------------------------------------------------------
|
||||
--> early checks and fixes
|
||||
|
||||
--> esta dando erro onde o nome é NIL, fazendo um fix para isso
|
||||
--> esta dando erro onde o nome � NIL, fazendo um fix para isso
|
||||
if (not who_name) then
|
||||
who_name = "[*] "..extraSpellName
|
||||
end
|
||||
@@ -3061,7 +3061,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
local este_jogador, meu_dono = misc_cache [who_name]
|
||||
if (not este_jogador) then --> pode ser um desconhecido ou um pet
|
||||
este_jogador, meu_dono, who_name = _current_misc_container:PegarCombatente (who_serial, who_name, who_flags, true)
|
||||
if (not meu_dono) then --> se não for um pet, adicionar no cache
|
||||
if (not meu_dono) then --> se n�o for um pet, adicionar no cache
|
||||
misc_cache [who_name] = este_jogador
|
||||
end
|
||||
end
|
||||
@@ -3070,7 +3070,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
--> build containers on the fly
|
||||
|
||||
if (not este_jogador.dispell) then
|
||||
--> constrói aqui a tabela dele
|
||||
--> constr�i aqui a tabela dele
|
||||
este_jogador.dispell = _detalhes:GetOrderNumber (who_name)
|
||||
este_jogador.dispell_targets = {}
|
||||
este_jogador.dispell_spells = container_habilidades:NovoContainer (container_misc)
|
||||
@@ -3148,7 +3148,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
local este_jogador, meu_dono = misc_cache [who_name]
|
||||
if (not este_jogador) then --> pode ser um desconhecido ou um pet
|
||||
este_jogador, meu_dono, who_name = _current_misc_container:PegarCombatente (who_serial, who_name, who_flags, true)
|
||||
if (not meu_dono) then --> se não for um pet, adicionar no cache
|
||||
if (not meu_dono) then --> se n�o for um pet, adicionar no cache
|
||||
misc_cache [who_name] = este_jogador
|
||||
end
|
||||
end
|
||||
@@ -3180,7 +3180,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
|
||||
--> add battle ress
|
||||
if (_UnitAffectingCombat (who_name)) then
|
||||
--> procura a última morte do alvo na tabela do combate:
|
||||
--> procura a �ltima morte do alvo na tabela do combate:
|
||||
for i = 1, #_current_combat.last_events_tables do
|
||||
if (_current_combat.last_events_tables [i] [3] == alvo_name) then
|
||||
|
||||
@@ -3262,7 +3262,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
local este_jogador, meu_dono = misc_cache [who_name]
|
||||
if (not este_jogador) then --> pode ser um desconhecido ou um pet
|
||||
este_jogador, meu_dono, who_name = _current_misc_container:PegarCombatente (who_serial, who_name, who_flags, true)
|
||||
if (not meu_dono) then --> se não for um pet, adicionar no cache
|
||||
if (not meu_dono) then --> se n�o for um pet, adicionar no cache
|
||||
misc_cache [who_name] = este_jogador
|
||||
end
|
||||
end
|
||||
@@ -3271,7 +3271,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
--> build containers on the fly
|
||||
|
||||
if (not este_jogador.cc_break) then
|
||||
--> constrói aqui a tabela dele
|
||||
--> constr�i aqui a tabela dele
|
||||
este_jogador.cc_break = _detalhes:GetOrderNumber (who_name)
|
||||
este_jogador.cc_break_targets = {}
|
||||
este_jogador.cc_break_spells = container_habilidades:NovoContainer (container_misc)
|
||||
@@ -3369,11 +3369,11 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
_current_total [4].dead = _current_total [4].dead + 1
|
||||
_current_gtotal [4].dead = _current_gtotal [4].dead + 1
|
||||
|
||||
--> main actor no container de misc que irá armazenar a morte
|
||||
--> main actor no container de misc que ir� armazenar a morte
|
||||
local este_jogador, meu_dono = misc_cache [alvo_name]
|
||||
if (not este_jogador) then --> pode ser um desconhecido ou um pet
|
||||
este_jogador, meu_dono, who_name = _current_misc_container:PegarCombatente (alvo_serial, alvo_name, alvo_flags, true)
|
||||
if (not meu_dono) then --> se não for um pet, adicionar no cache
|
||||
if (not meu_dono) then --> se n�o for um pet, adicionar no cache
|
||||
misc_cache [alvo_name] = este_jogador
|
||||
end
|
||||
end
|
||||
@@ -3886,39 +3886,39 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
["SPELL_PERIODIC_DAMAGE"] = "spell_dmg",
|
||||
["SPELL_EXTRA_ATTACKS"] = "spell_dmg",
|
||||
["SPELL_DAMAGE"] = "spell_dmg",
|
||||
["SPELL_BUILDING_DAMAGE"] = "spell_dmg",
|
||||
["SWING_DAMAGE"] = "swing",
|
||||
["RANGE_DAMAGE"] = "range",
|
||||
["DAMAGE_SHIELD"] = "spell_dmg",
|
||||
["DAMAGE_SPLIT"] = "spell_dmg",
|
||||
["RANGE_MISSED"] = "rangemissed",
|
||||
["SWING_MISSED"] = "swingmissed",
|
||||
["SPELL_MISSED"] = "missed",
|
||||
["SPELL_PERIODIC_MISSED"] = "missed",
|
||||
["SPELL_BUILDING_MISSED"] = "missed",
|
||||
["DAMAGE_SHIELD_MISSED"] = "missed",
|
||||
["SPELL_BUILDING_DAMAGE"] = "spell_dmg",
|
||||
["SWING_DAMAGE"] = "swing",
|
||||
["RANGE_DAMAGE"] = "range",
|
||||
["DAMAGE_SHIELD"] = "spell_dmg",
|
||||
["DAMAGE_SPLIT"] = "spell_dmg",
|
||||
["RANGE_MISSED"] = "rangemissed",
|
||||
["SWING_MISSED"] = "swingmissed",
|
||||
["SPELL_MISSED"] = "missed",
|
||||
["SPELL_PERIODIC_MISSED"] = "missed",
|
||||
["SPELL_BUILDING_MISSED"] = "missed",
|
||||
["DAMAGE_SHIELD_MISSED"] = "missed",
|
||||
["ENVIRONMENTAL_DAMAGE"] = "environment",
|
||||
|
||||
["SPELL_HEAL"] = "heal",
|
||||
|
||||
["SPELL_HEAL"] = "heal",
|
||||
["SPELL_PERIODIC_HEAL"] = "heal",
|
||||
["SPELL_HEAL_ABSORBED"] = "heal_denied",
|
||||
["SPELL_HEAL_ABSORBED"] = "heal_denied",
|
||||
["SPELL_ABSORBED"] = "heal_absorb",
|
||||
|
||||
["SPELL_AURA_APPLIED"] = "buff",
|
||||
["SPELL_AURA_REMOVED"] = "unbuff",
|
||||
|
||||
["SPELL_AURA_APPLIED"] = "buff",
|
||||
["SPELL_AURA_REMOVED"] = "unbuff",
|
||||
["SPELL_AURA_REFRESH"] = "buff_refresh",
|
||||
["SPELL_AURA_APPLIED_DOSE"] = "buff_refresh",
|
||||
["SPELL_ENERGIZE"] = "energize",
|
||||
["SPELL_AURA_APPLIED_DOSE"] = "buff_refresh",
|
||||
["SPELL_ENERGIZE"] = "energize",
|
||||
["SPELL_PERIODIC_ENERGIZE"] = "energize",
|
||||
|
||||
["SPELL_CAST_SUCCESS"] = "spellcast",
|
||||
["SPELL_DISPEL"] = "dispell",
|
||||
["SPELL_STOLEN"] = "dispell",
|
||||
["SPELL_AURA_BROKEN"] = "break_cc",
|
||||
["SPELL_AURA_BROKEN_SPELL"] = "break_cc",
|
||||
["SPELL_RESURRECT"] = "ress",
|
||||
["SPELL_INTERRUPT"] = "interrupt",
|
||||
["UNIT_DIED"] = "dead",
|
||||
|
||||
["SPELL_CAST_SUCCESS"] = "spellcast",
|
||||
["SPELL_DISPEL"] = "dispell",
|
||||
["SPELL_STOLEN"] = "dispell",
|
||||
["SPELL_AURA_BROKEN"] = "break_cc",
|
||||
["SPELL_AURA_BROKEN_SPELL"] = "break_cc",
|
||||
["SPELL_RESURRECT"] = "ress",
|
||||
["SPELL_INTERRUPT"] = "interrupt",
|
||||
["UNIT_DIED"] = "dead",
|
||||
["UNIT_DESTROYED"] = "dead",
|
||||
}
|
||||
|
||||
@@ -4199,7 +4199,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
_detalhes.encounter_table.zone = zoneName
|
||||
_detalhes.encounter_table.mapid = zoneMapID
|
||||
|
||||
if (dbm_mod and dbm_time == time()) then --pode ser time() é usado no start pra saber se foi no mesmo segundo.
|
||||
if (dbm_mod and dbm_time == time()) then --pode ser time() � usado no start pra saber se foi no mesmo segundo.
|
||||
_detalhes.encounter_table.DBM_Mod = dbm_mod
|
||||
end
|
||||
|
||||
@@ -4489,7 +4489,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
end
|
||||
|
||||
--if (C_Scenario.IsChallengeMode() and _detalhes.overall_clear_newchallenge) then
|
||||
-- if (_detalhes.overall_clear_newchallenge) then --C_Scenario.IsChallengeMode() and parece que não existe mais
|
||||
-- if (_detalhes.overall_clear_newchallenge) then --C_Scenario.IsChallengeMode() and parece que n�o existe mais
|
||||
-- _detalhes.historico:resetar_overall()
|
||||
-- if (_detalhes.debug) then
|
||||
-- _detalhes:Msg ("(debug) timer is a challenge mode start.")
|
||||
@@ -5127,4 +5127,4 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -764,4 +764,4 @@
|
||||
|
||||
|
||||
|
||||
--stop auto complete: doe enda endb
|
||||
--stop auto complete: doe enda endb
|
||||
|
||||
@@ -273,7 +273,7 @@
|
||||
function _detalhes:interrupt_announcer (token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, spellid, spellname, spelltype, extraSpellID, extraSpellName, extraSchool)
|
||||
|
||||
-- add novo canal Self.
|
||||
-- no canal self ele mostra todos os interrupts além do meu.
|
||||
-- no canal self ele mostra todos os interrupts al�m do meu.
|
||||
|
||||
-- add canal self pras mortes tbm?
|
||||
|
||||
@@ -627,4 +627,4 @@
|
||||
_detalhes:UnInstallHook (DETAILS_HOOK_DEATH, _detalhes.death_announcer)
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@
|
||||
if (show) then
|
||||
|
||||
--> salvar a janela normal
|
||||
if (self.mostrando ~= "solo") then --> caso o addon tenha ligado ja no painel solo, não precisa rodar isso aqui
|
||||
if (self.mostrando ~= "solo") then --> caso o addon tenha ligado ja no painel solo, n�o precisa rodar isso aqui
|
||||
self:SaveMainWindowPosition()
|
||||
|
||||
if (self.rolagem) then
|
||||
@@ -95,7 +95,7 @@
|
||||
self.need_rolagem = false
|
||||
|
||||
self.baseframe:EnableMouseWheel (false)
|
||||
gump:Fade (self, 1, nil, "barras") --> escondendo a janela da instância [instância [force hide [velocidade [hidar o que]]]]
|
||||
gump:Fade (self, 1, nil, "barras") --> escondendo a janela da inst�ncia [inst�ncia [force hide [velocidade [hidar o que]]]]
|
||||
self.mostrando = "solo"
|
||||
end
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
_detalhes.solo = self.meu_id
|
||||
--self:AtualizaSliderSolo (0)
|
||||
|
||||
if (not self.posicao.solo.w) then --> primeira vez que o solo mode é executado nessa instância
|
||||
if (not self.posicao.solo.w) then --> primeira vez que o solo mode � executado nessa inst�ncia
|
||||
self.baseframe:SetWidth (300)
|
||||
self.baseframe:SetHeight (300)
|
||||
self:SaveMainWindowPosition()
|
||||
@@ -153,7 +153,7 @@
|
||||
end
|
||||
end
|
||||
|
||||
_detalhes.solo = nil --> destranca a janela solo para ser usada em outras instâncias
|
||||
_detalhes.solo = nil --> destranca a janela solo para ser usada em outras inst�ncias
|
||||
self.mostrando = "normal"
|
||||
self:RestoreMainWindowPosition()
|
||||
|
||||
@@ -172,7 +172,7 @@
|
||||
end
|
||||
|
||||
--> calcula se existem barras, etc...
|
||||
if (not self.rows_fit_in_window) then --> as barras não forma iniciadas ainda
|
||||
if (not self.rows_fit_in_window) then --> as barras n�o forma iniciadas ainda
|
||||
self.rows_fit_in_window = _math_floor (self.baseframe.BoxBarrasAltura / self.row_height)
|
||||
if (self.rows_created < self.rows_fit_in_window) then
|
||||
for i = #self.barras+1, self.rows_fit_in_window do
|
||||
@@ -278,14 +278,14 @@
|
||||
|
||||
for SpellId, DebuffTable in _pairs (SoloDebuffUptime) do
|
||||
if (DebuffTable.start) then
|
||||
DebuffTable.duration = DebuffTable.duration + (_detalhes._tempo - DebuffTable.start) --> time do parser será igual ao time()?
|
||||
DebuffTable.duration = DebuffTable.duration + (_detalhes._tempo - DebuffTable.start) --> time do parser ser� igual ao time()?
|
||||
DebuffTable.start = nil
|
||||
end
|
||||
DebuffTable.Active = false
|
||||
end
|
||||
end
|
||||
|
||||
--> Buffs terá em todos os Solo Modes
|
||||
--> Buffs ter� em todos os Solo Modes
|
||||
function _detalhes.SoloTables:CatchBuffs()
|
||||
--> reset bufftables
|
||||
_detalhes.SoloTables.SoloBuffUptime = _detalhes.SoloTables.SoloBuffUptime or {}
|
||||
|
||||
@@ -783,7 +783,7 @@ do
|
||||
end
|
||||
end
|
||||
|
||||
else --> alguma tabela do histórico
|
||||
else --> alguma tabela do hist�rico
|
||||
|
||||
if (child.options.segmentType == 1) then
|
||||
child.text:SetText (Loc ["STRING_FIGHTNUMBER"] .. child.instance.segmento)
|
||||
@@ -1699,4 +1699,4 @@ extraWindow:SetBackdropColor (0, 0, 0, 0.9)
|
||||
else
|
||||
extraWindow:Hide()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
jogador:HoldOn (false)
|
||||
end
|
||||
else
|
||||
if (not jogador.on_hold) then --> não ta pausado, precisa por em pausa
|
||||
if (not jogador.on_hold) then --> n�o ta pausado, precisa por em pausa
|
||||
--> verifica se esta castando alguma coisa que leve + que 3 segundos
|
||||
jogador:HoldOn (true)
|
||||
end
|
||||
@@ -54,7 +54,7 @@
|
||||
jogador:HoldOn (false)
|
||||
end
|
||||
else
|
||||
if (not jogador.on_hold) then --> não ta pausado, precisa por em pausa
|
||||
if (not jogador.on_hold) then --> n�o ta pausado, precisa por em pausa
|
||||
--> verifica se esta castando alguma coisa que leve + que 10 segundos
|
||||
jogador:HoldOn (true)
|
||||
end
|
||||
@@ -259,4 +259,4 @@
|
||||
function _detalhes:PrintTimeMachineIndexes()
|
||||
print ("timemachine damage", #timeMachine.tabelas [1])
|
||||
print ("timemachine heal", #timeMachine.tabelas [2])
|
||||
end
|
||||
end
|
||||
|
||||
+16
-16
@@ -1113,8 +1113,8 @@ end
|
||||
|
||||
if (_type (frame) == "table") then
|
||||
|
||||
if (frame.meu_id) then --> ups, é uma instância
|
||||
if (parametros == "barras") then --> hida todas as barras da instância
|
||||
if (frame.meu_id) then --> ups, � uma inst�ncia
|
||||
if (parametros == "barras") then --> hida todas as barras da inst�ncia
|
||||
if (velocidade) then
|
||||
for i = 1, frame.rows_created, 1 do
|
||||
gump:Fade (frame.barras[i], tipo, velocidade)
|
||||
@@ -1127,7 +1127,7 @@ end
|
||||
end
|
||||
return
|
||||
end
|
||||
elseif (parametros == "hide_barras") then --> hida todas as barras da instância
|
||||
elseif (parametros == "hide_barras") then --> hida todas as barras da inst�ncia
|
||||
for i = 1, frame.rows_created, 1 do
|
||||
local esta_barra = frame.barras[i]
|
||||
if (esta_barra.fading_in or esta_barra.fading_out) then
|
||||
@@ -1150,10 +1150,10 @@ end
|
||||
|
||||
velocidade = velocidade or 0.3
|
||||
|
||||
--> esse ALL aqui pode dar merda com as instâncias não ativadas
|
||||
if (frame == "all") then --> todas as instâncias
|
||||
--> esse ALL aqui pode dar merda com as inst�ncias n�o ativadas
|
||||
if (frame == "all") then --> todas as inst�ncias
|
||||
for _, instancia in _ipairs (_detalhes.tabela_instancias) do
|
||||
if (parametros == "barras") then --> hida todas as barras da instância
|
||||
if (parametros == "barras") then --> hida todas as barras da inst�ncia
|
||||
for i = 1, instancia.rows_created, 1 do
|
||||
gump:Fade (instancia.barras[i], tipo, velocidade+(i/10))
|
||||
end
|
||||
@@ -1164,11 +1164,11 @@ end
|
||||
|
||||
if (frame:GetAlpha() == 0 and frame.hidden and not frame.fading_out) then --> ja esta escondida
|
||||
return
|
||||
elseif (frame.fading_in) then --> ja esta com uma animação, se for true
|
||||
elseif (frame.fading_in) then --> ja esta com uma anima��o, se for true
|
||||
return
|
||||
end
|
||||
|
||||
if (frame.fading_out) then --> se tiver uma animação de aparecer em andamento se for true
|
||||
if (frame.fading_out) then --> se tiver uma anima��o de aparecer em andamento se for true
|
||||
frame.fading_out = false
|
||||
end
|
||||
|
||||
@@ -1181,11 +1181,11 @@ end
|
||||
elseif (_upper (tipo) == "OUT") then --> aparecer
|
||||
if (frame:GetAlpha() == 1 and not frame.hidden and not frame.fading_in) then --> ja esta na tela
|
||||
return
|
||||
elseif (frame.fading_out) then --> já ta com fading out
|
||||
elseif (frame.fading_out) then --> j� ta com fading out
|
||||
return
|
||||
end
|
||||
|
||||
if (frame.fading_in) then --> se tiver uma animação de hidar em andamento se for true
|
||||
if (frame.fading_in) then --> se tiver uma anima��o de hidar em andamento se for true
|
||||
frame.fading_in = false
|
||||
end
|
||||
|
||||
@@ -1196,7 +1196,7 @@ end
|
||||
frame.fadeInfo.finishedFunc = fade_OUT_finished_func
|
||||
frame.fadeInfo.finishedArg1 = frame
|
||||
|
||||
elseif (tipo == 0) then --> força o frame a ser mostrado
|
||||
elseif (tipo == 0) then --> for�a o frame a ser mostrado
|
||||
frame.hidden = false
|
||||
frame.faded = false
|
||||
frame.fading_out = false
|
||||
@@ -1204,7 +1204,7 @@ end
|
||||
frame:Show()
|
||||
frame:SetAlpha (1)
|
||||
|
||||
elseif (tipo == 1) then --> força o frame a ser hidado
|
||||
elseif (tipo == 1) then --> for�a o frame a ser hidado
|
||||
frame.hidden = true
|
||||
frame.faded = true
|
||||
frame.fading_out = false
|
||||
@@ -1215,11 +1215,11 @@ end
|
||||
elseif (tipo == -1) then --> apenas da fade sem hidar
|
||||
if (frame:GetAlpha() == 0 and frame.hidden and not frame.fading_out) then --> ja esta escondida
|
||||
return
|
||||
elseif (frame.fading_in) then --> ja esta com uma animação, se for true
|
||||
elseif (frame.fading_in) then --> ja esta com uma anima��o, se for true
|
||||
return
|
||||
end
|
||||
|
||||
if (frame.fading_out) then --> se tiver uma animação de aparecer em andamento se for true
|
||||
if (frame.fading_out) then --> se tiver uma anima��o de aparecer em andamento se for true
|
||||
frame.fading_out = false
|
||||
end
|
||||
|
||||
@@ -1235,7 +1235,7 @@ end
|
||||
frame:Show()
|
||||
|
||||
if (currentApha < value) then
|
||||
if (frame.fading_in) then --> se tiver uma animação de hidar em andamento se for true
|
||||
if (frame.fading_in) then --> se tiver uma anima��o de hidar em andamento se for true
|
||||
frame.fading_in = false
|
||||
frame.fadeInfo.finishedFunc = nil
|
||||
end
|
||||
@@ -1246,7 +1246,7 @@ end
|
||||
frame.fadeInfo.finishedArg1 = frame
|
||||
|
||||
else
|
||||
if (frame.fading_out) then --> se tiver uma animação de hidar em andamento se for true
|
||||
if (frame.fading_out) then --> se tiver uma anima��o de hidar em andamento se for true
|
||||
frame.fading_out = false
|
||||
frame.fadeInfo.finishedFunc = nil
|
||||
end
|
||||
|
||||
+25
-25
@@ -442,7 +442,7 @@
|
||||
self.ponto4.y = _y + metade_altura + (statusbar_y_mod*-1)
|
||||
end
|
||||
|
||||
self.baseframe.BoxBarrasAltura = self.baseframe:GetHeight() - end_window_spacement --> espaço para o final da janela
|
||||
self.baseframe.BoxBarrasAltura = self.baseframe:GetHeight() - end_window_spacement --> espa�o para o final da janela
|
||||
|
||||
return {altura = self.baseframe:GetHeight(), largura = self.baseframe:GetWidth(), x = _x, y = _y}
|
||||
end
|
||||
@@ -505,7 +505,7 @@
|
||||
self.ponto4.y = _y + metade_altura + (statusbar_y_mod*-1)
|
||||
end
|
||||
|
||||
self.baseframe.BoxBarrasAltura = self.baseframe:GetHeight() - end_window_spacement --> espaço para o final da janela
|
||||
self.baseframe.BoxBarrasAltura = self.baseframe:GetHeight() - end_window_spacement --> espa�o para o final da janela
|
||||
|
||||
return {altura = self.baseframe:GetHeight(), largura = self.baseframe:GetWidth(), x = _x, y = _y}
|
||||
end
|
||||
@@ -521,7 +521,7 @@
|
||||
self.baseframe:SetHeight (self.posicao[self.mostrando].h)
|
||||
|
||||
self:RestoreLibWindow()
|
||||
self.baseframe.BoxBarrasAltura = self.baseframe:GetHeight() - end_window_spacement --> espaço para o final da janela
|
||||
self.baseframe.BoxBarrasAltura = self.baseframe:GetHeight() - end_window_spacement --> espa�o para o final da janela
|
||||
return
|
||||
end
|
||||
|
||||
@@ -573,7 +573,7 @@
|
||||
|
||||
self.baseframe:ClearAllPoints()
|
||||
self.baseframe:SetPoint ("CENTER", _UIParent, "CENTER", novo_x + x, novo_y + y)
|
||||
self.baseframe.BoxBarrasAltura = self.baseframe:GetHeight() - end_window_spacement --> espaço para o final da janela
|
||||
self.baseframe.BoxBarrasAltura = self.baseframe:GetHeight() - end_window_spacement --> espa�o para o final da janela
|
||||
end
|
||||
|
||||
function _detalhes:CreatePositionTable()
|
||||
@@ -636,9 +636,9 @@
|
||||
end
|
||||
|
||||
instancia.barraS = {nil, nil} --> zera o iterator
|
||||
instancia.rows_showing = 0 --> resetou, então não esta mostranho nenhuma barra
|
||||
instancia.rows_showing = 0 --> resetou, ent�o n�o esta mostranho nenhuma barra
|
||||
|
||||
for i = 1, instancia.rows_created, 1 do --> limpa a referência do que estava sendo mostrado na barra
|
||||
for i = 1, instancia.rows_created, 1 do --> limpa a refer�ncia do que estava sendo mostrado na barra
|
||||
local esta_barra= instancia.barras[i]
|
||||
esta_barra.minha_tabela = nil
|
||||
esta_barra.animacao_fim = 0
|
||||
@@ -707,7 +707,7 @@
|
||||
_detalhes:Freeze (self)
|
||||
end
|
||||
|
||||
-- -4 difere a precisão de quando a barra será adicionada ou apagada da barra
|
||||
-- -4 difere a precis�o de quando a barra ser� adicionada ou apagada da barra
|
||||
self.baseframe.BoxBarrasAltura = (self.baseframe:GetHeight()) - end_window_spacement
|
||||
|
||||
local T = self.rows_fit_in_window
|
||||
@@ -715,7 +715,7 @@
|
||||
T = _math_floor (self.baseframe.BoxBarrasAltura / self.row_height)
|
||||
end
|
||||
|
||||
--> reajustar o local do relógio
|
||||
--> reajustar o local do rel�gio
|
||||
local meio = self.baseframe:GetWidth() / 2
|
||||
local novo_local = meio - 25
|
||||
|
||||
@@ -745,8 +745,8 @@
|
||||
|
||||
--> verifica se precisa esconder ou mostrar alguma barra
|
||||
local A = self.barraS[1]
|
||||
if (not A) then --> primeira vez que o resize esta sendo usado, no caso no startup do addon ou ao criar uma nova instância
|
||||
--> hida as barras não usadas
|
||||
if (not A) then --> primeira vez que o resize esta sendo usado, no caso no startup do addon ou ao criar uma nova inst�ncia
|
||||
--> hida as barras n�o usadas
|
||||
for i = 1, self.rows_created, 1 do
|
||||
gump:Fade (self.barras [i], 1)
|
||||
self.barras [i].on = false
|
||||
@@ -760,8 +760,8 @@
|
||||
--> novo iterator
|
||||
local barras_diff = C - T --> aqui pega a quantidade de barras, se aumentou ou diminuiu
|
||||
if (barras_diff > 0) then --> ganhou barras_diff novas barras
|
||||
local fim_iterator = self.barraS[2] --> posição atual
|
||||
fim_iterator = fim_iterator+barras_diff --> nova posição
|
||||
local fim_iterator = self.barraS[2] --> posi��o atual
|
||||
fim_iterator = fim_iterator+barras_diff --> nova posi��o
|
||||
local excedeu_iterator = fim_iterator - X --> total que ta sendo mostrado - fim do iterator
|
||||
if (excedeu_iterator > 0) then --> extrapolou
|
||||
fim_iterator = X --> seta o fim do iterator pra ser na ultima barra
|
||||
@@ -772,10 +772,10 @@
|
||||
inicio_iterator = inicio_iterator-excedeu_iterator --> pega o novo valor do iterator
|
||||
self.barraS[1] = inicio_iterator
|
||||
else
|
||||
self.barraS[1] = 1 --> se ganhou mais barras pra cima, ignorar elas e mover o iterator para a pocição inicial
|
||||
self.barraS[1] = 1 --> se ganhou mais barras pra cima, ignorar elas e mover o iterator para a poci��o inicial
|
||||
end
|
||||
else
|
||||
--> se não extrapolou esta okey e esta mostrando a quantidade de barras correta
|
||||
--> se n�o extrapolou esta okey e esta mostrando a quantidade de barras correta
|
||||
self.barraS[2] = fim_iterator
|
||||
end
|
||||
|
||||
@@ -796,12 +796,12 @@
|
||||
end
|
||||
|
||||
elseif (barras_diff < 0) then --> perdeu barras_diff barras
|
||||
local fim_iterator = self.barraS[2] --> posição atual
|
||||
if (not (fim_iterator == X and fim_iterator < C)) then --> calcula primeiro as barras que foram perdidas são barras que não estavam sendo usadas
|
||||
--> perdi X barras, diminui X posições no iterator
|
||||
local fim_iterator = self.barraS[2] --> posi��o atual
|
||||
if (not (fim_iterator == X and fim_iterator < C)) then --> calcula primeiro as barras que foram perdidas s�o barras que n�o estavam sendo usadas
|
||||
--> perdi X barras, diminui X posi��es no iterator
|
||||
local perdeu = _math_abs (barras_diff)
|
||||
|
||||
if (fim_iterator == X) then --> se o iterator tiver na ultima posição
|
||||
if (fim_iterator == X) then --> se o iterator tiver na ultima posi��o
|
||||
perdeu = perdeu - (C - X)
|
||||
end
|
||||
|
||||
@@ -860,7 +860,7 @@
|
||||
qual_barra = qual_barra+1
|
||||
end
|
||||
|
||||
--> força o próximo refresh
|
||||
--> for�a o pr�ximo refresh
|
||||
self.showing[self.atributo].need_refresh = true
|
||||
|
||||
end
|
||||
@@ -2510,7 +2510,7 @@
|
||||
if (bookmark and bookmark.atributo and bookmark.sub_atributo) then
|
||||
if (bookmark.atributo == 5) then --> custom
|
||||
local CustomObject = _detalhes.custom [bookmark.sub_atributo]
|
||||
if (not CustomObject) then --> ele já foi deletado
|
||||
if (not CustomObject) then --> ele j� foi deletado
|
||||
this_block.label.text = "-- x -- x --"
|
||||
this_block.icon.texture = "Interface\\ICONS\\Ability_DualWield"
|
||||
this_block.icon.texcoord = normal_coords
|
||||
@@ -3734,7 +3734,7 @@
|
||||
|
||||
local tw_actor_name = { --GBK
|
||||
{"造成傷害目標", "ROGUE", },
|
||||
{"怒氣生æˆ", "DEATHKNIGHT", },
|
||||
{"怒氣生�", "DEATHKNIGHT", },
|
||||
{"承受治療", "WARLOCK", },
|
||||
{"格檔", "PRIEST", },
|
||||
{"中央", "MAGE", },
|
||||
@@ -3748,7 +3748,7 @@
|
||||
{"加到書籤", "MAGE", },
|
||||
{"最大化", "SHAMAN", },
|
||||
{"未命中", "MONK", },
|
||||
{"�進階", "WARRIOR", },
|
||||
{"�進階", "WARRIOR", },
|
||||
}
|
||||
|
||||
local cn_actor_name = { --GBK
|
||||
@@ -5379,7 +5379,7 @@ local CreateCurrentDpsFrame = function (parent, name)
|
||||
elseif (self.ShowingMythicDungeon) then
|
||||
|
||||
--iniciava um novo combate e tinha o buffer do combate anterior
|
||||
--então dava o total de dano do combate recente menos o que tinha no buffer do round anterior
|
||||
--ent�o dava o total de dano do combate recente menos o que tinha no buffer do round anterior
|
||||
|
||||
--> the party damage done at this tick
|
||||
local thisTickGroupDamage = 0
|
||||
@@ -6577,8 +6577,8 @@ function Details:OpenEventTrackerOptions (from_options_panel)
|
||||
|
||||
end
|
||||
|
||||
-- fazer painel de opções
|
||||
-- fazer um painel de opções "broadcaster settings"
|
||||
-- fazer painel de op��es
|
||||
-- fazer um painel de op��es "broadcaster settings"
|
||||
|
||||
C_Timer.After (1, function()
|
||||
--Details:OpenOptionsWindow(Details:GetInstance(1))
|
||||
|
||||
Reference in New Issue
Block a user