- fixed some problems with buff uptime data save on logout.
- avoidance now works only with players.
This commit is contained in:
@@ -259,7 +259,8 @@ function _detalhes.refresh:r_combate (tabela_combate, shadow)
|
||||
end
|
||||
|
||||
function _detalhes.clear:c_combate (tabela_combate)
|
||||
tabela_combate.__index = {}
|
||||
--tabela_combate.__index = {}
|
||||
tabela_combate.__index = nil
|
||||
tabela_combate.__call = {}
|
||||
tabela_combate._combat_table = nil
|
||||
tabela_combate.shadow = nil
|
||||
|
||||
@@ -75,8 +75,6 @@ function atributo_damage:NovaTabela (serial, nome, link)
|
||||
|
||||
damage_taken = 0, --> total de dano que este jogador levou
|
||||
damage_from = {}, --> armazena os nomes que deram dano neste jogador
|
||||
|
||||
avoidance = {["DODGE"] = 0, ["PARRY"] = 0, ["HITS"] = 0}, --> avoidance
|
||||
|
||||
dps_started = false,
|
||||
last_event = 0,
|
||||
@@ -2240,7 +2238,8 @@ function _detalhes.refresh:r_atributo_damage (este_jogador, shadow)
|
||||
end
|
||||
|
||||
function _detalhes.clear:c_atributo_damage (este_jogador)
|
||||
este_jogador.__index = {}
|
||||
--este_jogador.__index = {}
|
||||
este_jogador.__index = nil
|
||||
este_jogador.shadow = nil
|
||||
este_jogador.links = nil
|
||||
este_jogador.minha_barra = nil
|
||||
|
||||
@@ -270,7 +270,8 @@ function _detalhes.refresh:r_habilidade_dano (habilidade, shadow) --recebeu o co
|
||||
end
|
||||
|
||||
function _detalhes.clear:c_habilidade_dano (habilidade)
|
||||
habilidade.__index = {}
|
||||
--habilidade.__index = {}
|
||||
habilidade.__index = nil
|
||||
habilidade.shadow = nil
|
||||
|
||||
_detalhes.clear:c_container_combatentes (habilidade.targets)
|
||||
|
||||
@@ -885,7 +885,8 @@ function _detalhes.refresh:r_atributo_energy (este_jogador, shadow)
|
||||
end
|
||||
|
||||
function _detalhes.clear:c_atributo_energy (este_jogador)
|
||||
este_jogador.__index = {}
|
||||
--este_jogador.__index = {}
|
||||
este_jogador.__index = nil
|
||||
este_jogador.shadow = nil
|
||||
este_jogador.links = nil
|
||||
este_jogador.minha_barra = nil
|
||||
|
||||
@@ -85,6 +85,7 @@ function _detalhes.refresh:r_habilidade_e_energy (habilidade, shadow) --recebeu
|
||||
end
|
||||
|
||||
function _detalhes.clear:c_habilidade_e_energy (habilidade)
|
||||
--habilidade.__index = {}
|
||||
habilidade.__index = {}
|
||||
habilidade.shadow = nil
|
||||
|
||||
|
||||
@@ -1596,7 +1596,8 @@ function _detalhes.refresh:r_atributo_heal (este_jogador, shadow)
|
||||
end
|
||||
|
||||
function _detalhes.clear:c_atributo_heal (este_jogador)
|
||||
este_jogador.__index = {}
|
||||
--este_jogador.__index = {}
|
||||
este_jogador.__index = nil
|
||||
este_jogador.shadow = nil
|
||||
este_jogador.links = nil
|
||||
este_jogador.minha_barra = nil
|
||||
|
||||
@@ -128,7 +128,8 @@ function _detalhes.refresh:r_habilidade_cura (habilidade, shadow)
|
||||
end
|
||||
|
||||
function _detalhes.clear:c_habilidade_cura (habilidade)
|
||||
habilidade.__index = {}
|
||||
--habilidade.__index = {}
|
||||
habilidade.__index = nil
|
||||
habilidade.shadow = nil
|
||||
|
||||
_detalhes.clear:c_container_combatentes (habilidade.targets)
|
||||
|
||||
@@ -1625,6 +1625,13 @@ function _detalhes.refresh:r_atributo_misc (este_jogador, shadow)
|
||||
_detalhes.refresh:r_container_combatentes (este_jogador.interrupt_targets, shadow.interrupt_targets)
|
||||
_detalhes.refresh:r_container_habilidades (este_jogador.interrupt_spell_tables, shadow.interrupt_spell_tables)
|
||||
end
|
||||
|
||||
--> refresh buff uptime
|
||||
if (este_jogador.buff_uptime_targets) then
|
||||
_detalhes.refresh:r_container_combatentes (este_jogador.buff_uptime_targets, shadow.buff_uptime_targets)
|
||||
_detalhes.refresh:r_container_habilidades (este_jogador.buff_uptime_spell_tables, shadow.buff_uptime_spell_tables)
|
||||
end
|
||||
|
||||
--> refresh cooldowns defensive
|
||||
if (este_jogador.cooldowns_defensive_targets) then
|
||||
_detalhes.refresh:r_container_combatentes (este_jogador.cooldowns_defensive_targets, shadow.cooldowns_defensive_targets)
|
||||
@@ -1655,12 +1662,19 @@ function _detalhes.refresh:r_atributo_misc (este_jogador, shadow)
|
||||
_detalhes.refresh:r_container_combatentes (este_jogador.interrupt_targets, -1)
|
||||
_detalhes.refresh:r_container_habilidades (este_jogador.interrupt_spell_tables, -1)
|
||||
end
|
||||
|
||||
--> refresh cooldowns defensive
|
||||
if (este_jogador.cooldowns_defensive_targets) then
|
||||
_detalhes.refresh:r_container_combatentes (este_jogador.cooldowns_defensive_targets, -1)
|
||||
_detalhes.refresh:r_container_habilidades (este_jogador.cooldowns_defensive_spell_tables, -1)
|
||||
end
|
||||
|
||||
--> refresh buff uptime
|
||||
if (este_jogador.buff_uptime_targets) then
|
||||
_detalhes.refresh:r_container_combatentes (este_jogador.buff_uptime_targets, -1)
|
||||
_detalhes.refresh:r_container_habilidades (este_jogador.buff_uptime_spell_tables, -1)
|
||||
end
|
||||
|
||||
--> refresh ressers
|
||||
if (este_jogador.ress_targets) then
|
||||
_detalhes.refresh:r_container_combatentes (este_jogador.ress_targets, -1)
|
||||
@@ -1683,7 +1697,8 @@ end
|
||||
|
||||
function _detalhes.clear:c_atributo_misc (este_jogador)
|
||||
|
||||
este_jogador.__index = {}
|
||||
--este_jogador.__index = {}
|
||||
este_jogador.__index = nil
|
||||
este_jogador.shadow = nil
|
||||
este_jogador.links = nil
|
||||
este_jogador.minha_barra = nil
|
||||
@@ -1692,11 +1707,17 @@ function _detalhes.clear:c_atributo_misc (este_jogador)
|
||||
_detalhes.clear:c_container_combatentes (este_jogador.interrupt_targets)
|
||||
_detalhes.clear:c_container_habilidades (este_jogador.interrupt_spell_tables)
|
||||
end
|
||||
|
||||
if (este_jogador.cooldowns_defensive_targets) then
|
||||
_detalhes.clear:c_container_combatentes (este_jogador.cooldowns_defensive_targets)
|
||||
_detalhes.clear:c_container_habilidades (este_jogador.cooldowns_defensive_spell_tables)
|
||||
end
|
||||
|
||||
if (este_jogador.buff_uptime_targets) then
|
||||
_detalhes.clear:c_container_combatentes (este_jogador.buff_uptime_targets)
|
||||
_detalhes.clear:c_container_habilidades (este_jogador.buff_uptime_spell_tables)
|
||||
end
|
||||
|
||||
if (este_jogador.ress_targets) then
|
||||
_detalhes.clear:c_container_combatentes (este_jogador.ress_targets)
|
||||
_detalhes.clear:c_container_habilidades (este_jogador.ress_spell_tables)
|
||||
|
||||
@@ -195,7 +195,8 @@ function _detalhes.refresh:r_habilidade_misc (habilidade, shadow) --recebeu o co
|
||||
end
|
||||
|
||||
function _detalhes.clear:c_habilidade_misc (habilidade)
|
||||
habilidade.__index = {}
|
||||
--habilidade.__index = {}
|
||||
habilidade.__index = nil
|
||||
habilidade.shadow = nil
|
||||
|
||||
_detalhes.clear:c_container_combatentes (habilidade.targets)
|
||||
|
||||
@@ -40,7 +40,8 @@ end
|
||||
|
||||
function _detalhes.clear:c_alvo_da_habilidade (este_alvo)
|
||||
este_alvo.shadow = nil
|
||||
este_alvo.__index = {}
|
||||
--este_alvo.__index = {}
|
||||
este_alvo.__index = nil
|
||||
end
|
||||
|
||||
alvo_da_habilidade.__sub = function (tabela1, tabela2)
|
||||
|
||||
@@ -274,6 +274,9 @@ function container_combatentes:PegarCombatente (serial, nome, flag, criar, isOwn
|
||||
end
|
||||
end
|
||||
|
||||
if (novo_objeto.grupo) then
|
||||
novo_objeto.avoidance = {["DODGE"] = 0, ["PARRY"] = 0, ["HITS"] = 0} --> avoidance
|
||||
end
|
||||
|
||||
elseif (self.tipo == container_heal) then --> CONTAINER HEALING
|
||||
|
||||
@@ -486,7 +489,8 @@ function _detalhes.refresh:r_container_combatentes (container, shadow)
|
||||
end
|
||||
|
||||
function _detalhes.clear:c_container_combatentes (container)
|
||||
container.__index = {}
|
||||
--container.__index = {}
|
||||
container.__index = nil
|
||||
container.shadow = nil
|
||||
container._NameIndexTable = nil
|
||||
container.need_refresh = nil
|
||||
|
||||
@@ -123,7 +123,8 @@ function _detalhes.refresh:r_container_habilidades (container, shadow)
|
||||
end
|
||||
|
||||
function _detalhes.clear:c_container_habilidades (container)
|
||||
container.__index = {}
|
||||
--container.__index = {}
|
||||
container.__index = nil
|
||||
container.shadow = nil
|
||||
container.funcao_de_criacao = nil
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user