- Improved specialization detection in order to try detect spec changes.

- Fixed an issue with 'Always Show me' feature where it was showing the player on Enemies display.
This commit is contained in:
Tercio
2015-01-21 14:17:18 -02:00
parent a1e5bcf3ce
commit f37e80eead
5 changed files with 40 additions and 7 deletions
+7 -5
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1139,7 +1139,7 @@ function atributo_damage:RefreshWindow (instancia, tabela_do_combate, forcar, ex
end
local myPos
local following = instancia.following.enabled
local following = instancia.following.enabled and sub_atributo ~= 6
if (following) then
if (using_cache) then
+2 -1
View File
@@ -126,7 +126,8 @@
local have_cached = cached_specs [serial]
if (have_cached) then
novo_objeto.spec = have_cached
_detalhes:ScheduleTimer ("GuessSpec", 15, {novo_objeto, self, 10})
--> check is didn't changed the spec:
_detalhes:ScheduleTimer ("ReGuessSpec", 15, {novo_objeto, self})
else
_detalhes:ScheduleTimer ("GuessSpec", 3, {novo_objeto, self, 1})
end
+30
View File
@@ -154,6 +154,36 @@ do
end
function _detalhes:ReGuessSpec (t)
local Actor, container = t[1], t[2]
local SpecSpellList = _detalhes.SpecSpellList
if (Actor.spells) then
for spellid, _ in _pairs (Actor.spells._ActorTable) do
local spec = SpecSpellList [spellid]
if (spec) then
if (spec ~= Actor.spec) then
_detalhes.cached_specs [Actor.serial] = spec
Actor.spec = spec
if (container) then
container.need_refresh = true
end
if (Actor.minha_barra and type (Actor.minha_barra) == "table") then
Actor.minha_barra.minha_tabela = nil
end
return spec
else
break
end
end
end
end
end
function _detalhes:GuessSpec (t)
local Actor, container, tries = t[1], t[2], t[3]
Binary file not shown.