From 96dce29ceeab5fc5804178e61ce73562841075ee Mon Sep 17 00:00:00 2001 From: Tercio Date: Tue, 20 Aug 2013 22:01:06 -0300 Subject: [PATCH] fixes --- classes/classe_instancia.lua | 12 +++++++++++- core/control.lua | 2 +- core/network.lua | 6 +++--- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/classes/classe_instancia.lua b/classes/classe_instancia.lua index 8d9eff14..0e3c1cb8 100644 --- a/classes/classe_instancia.lua +++ b/classes/classe_instancia.lua @@ -1119,13 +1119,20 @@ function _detalhes:TrocaTabela (instancia, segmento, atributo, sub_atributo, ini end if (_detalhes.cloud_process) then + + if (_detalhes.debug) then + _detalhes:Msg ("cloud process running...") + end + local atributo = instancia.atributo local time_left = (_detalhes.last_data_requested+7) - _detalhes._tempo if (atributo == 1 and _detalhes.in_combat and not _detalhes:CaptureGet ("damage") and _detalhes.host_by) then elseif (atributo == 2 and _detalhes.in_combat and (not _detalhes:CaptureGet ("heal") or _detalhes:CaptureGet ("aura")) and _detalhes.host_by) then - + if (_detalhes.debug) then + _detalhes:Msg ("cofirmed, geting heal.") + end elseif (atributo == 3 and _detalhes.in_combat and not _detalhes:CaptureGet ("energy") and _detalhes.host_by) then elseif (atributo == 4 and _detalhes.in_combat and not _detalhes:CaptureGet ("miscdata") and _detalhes.host_by) then @@ -1135,6 +1142,9 @@ function _detalhes:TrocaTabela (instancia, segmento, atributo, sub_atributo, ini end if (time_left) then + if (_detalhes.debug) then + _detalhes:Msg ("showing please wait.") + end instancia:InstanceAlert (Loc ["STRING_PLEASE_WAIT"], {[[Interface\COMMON\StreamCircle]], 22, 22, true}, time_left) end end diff --git a/core/control.lua b/core/control.lua index eeb7eb56..475448da 100644 --- a/core/control.lua +++ b/core/control.lua @@ -435,7 +435,7 @@ --> have flag and the flag tell us he is a pet if (actor.flag_original and bit.band (actor.flag_original, OBJECT_TYPE_PETS) ~= 0) then --> do not have owner and he isn't on owner container - if (not actor.owner and not _detalhes.container_pets.pets [actor.serial]) then + if (not actor.owner and not _detalhes.tabela_pets.pets [actor.serial]) then _detalhes:SendPetOwnerRequest (actor.serial, actor.nome) end end diff --git a/core/network.lua b/core/network.lua index de1b6013..62ab0462 100644 --- a/core/network.lua +++ b/core/network.lua @@ -52,8 +52,8 @@ local nome = realm local owner_table = dversion - if (not _detalhes.container_pets.pets [serial]) then - _detalhes.container_pets.pets [serial] = owner_table + if (not _detalhes.tabela_pets.pets [serial]) then + _detalhes.tabela_pets.pets [serial] = owner_table local petActor = _detalhes.tabela_vigente[1]:PegarCombatente (_, nome) if (petActor) then local ownerActor = _detalhes.tabela_vigente[1]:PegarCombatente (owner_table[2], owner_table[1], owner_table[3], true) @@ -75,7 +75,7 @@ local petserial = arg6 local petnome = arg7 - local owner_table = _detalhes.container_pets.pets [petserial] + local owner_table = _detalhes.tabela_pets.pets [petserial] if (owner_table) then if (realm ~= GetRealmName()) then