diff --git a/boot.lua b/boot.lua index 0ad03483..7f416788 100644 --- a/boot.lua +++ b/boot.lua @@ -3,8 +3,8 @@ _ = nil _detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0") - _detalhes.build_counter = 2735 --it's 2735 for release - _detalhes.userversion = "v5.12" + _detalhes.build_counter = 2745 --it's 2745 for release + _detalhes.userversion = "v5.13" _detalhes.realversion = 110 --core version _detalhes.version = _detalhes.userversion .. " (core " .. _detalhes.realversion .. ")" Details = _detalhes @@ -21,7 +21,8 @@ do local Loc = LibStub ("AceLocale-3.0"):GetLocale ( "Details" ) --[[ -|cFFFFFF00v5.12 (|cFFFFCC00July 29, 2016|r|cFFFFFF00)|r:\n\n +|cFFFFFF00v5.13 (|cFFFFCC00July 30, 2016|r|cFFFFFF00)|r:\n\n +|cFFFFFF00-|r 'Minimalistic' is once again the default skin for new windows, changed from the 'Safe Beta Skin'.\n\n |cFFFFFF00-|r Fixed some issues with spec detection and LibGroupInSpecT-1.1 has need enabled back again.\n\n |cFFFFFF00-|r Fixed an issue with micro displays not loading settings after a logon.\n\n |cFFFFFF00-|r Another wave of workarounds to prevent the client image cache bug.\n\n @@ -32,9 +33,8 @@ do --]] -- - --Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v5.10c (|cFFFFCC00July 22, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Trying a workaround for the wow client's texture cache bug which causes FPS drops, please delete the file 'spec_icons_normal.TGA' from details/image folder.\n\n|cFFFFFF00v5.10b (|cFFFFCC00July 21, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed warlock's Soul Effigy.\n\n|cFFFFFF00v5.10a (|cFFFFCC00July 20, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed an issue with Calc Leech plugin.\n\n|cFFFFFF00v5.10 (|cFFFFCC00July 19, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Using .BLP format for images. If you have FPS drops caused by Details!, delete ALL .TGA files inside the folder Details/Images/\n\n|cFFFFFF00v5.8 (|cFFFFCC00July 11, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Big framework update. May have some bugs, please report to us if you find any.\n\n|cFFFFFF00v5.8 (|cFFFFCC00June 27, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Energy and Resources are working properly now.\n\n|cFFFFFF00-|r Added raid information for The Emerald Nightmare.\n\n|cFFFFFF00v5.7 (|cFFFFCC00June 16, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Most of the raid plugins got added on this version.\n\n|cFFFFFF00-|r Plugin 'Damage, The Game!' also got damage goals updated.\n\n|cFFFFFF00v5.5 (|cFFFFCC00June 03, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Default skin is now 'Safe Skin Legion Beta' which helps a little with the disabled texture issue.\n|cFFFFFF00-|r If you're using another skin, you may change at the options panel /details options > Skin Selection.\n|cFFFFFF00-|r You also can disable the class icons at Bars: General > Icon File." - Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v5.12 (|cFFFFCC00July 29, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed some issues with spec detection and LibGroupInSpecT-1.1 has need enabled back again.\n\n|cFFFFFF00-|r Fixed an issue with micro displays not loading settings after a logon.\n\n|cFFFFFF00-|r Another wave of workarounds to prevent the client image cache bug.\n\n|cFFFFFF00-|r fixed the spam of 'segment not added to overall'.\n\n|cFFFFFF00-|r stormlash and blessing of might workarouds.\n\n|cFFFFFF00-|r warrior rampage fix.\n\n|cFFFFFF00-|r hunter throw axe fix.\n\n|cFFFFFF00v5.10c (|cFFFFCC00July 22, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Trying a workaround for the wow client's texture cache bug which causes FPS drops, please delete the file 'spec_icons_normal.TGA' from details/image folder.\n\n|cFFFFFF00v5.10b (|cFFFFCC00July 21, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed warlock's Soul Effigy.\n\n|cFFFFFF00v5.10a (|cFFFFCC00July 20, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed an issue with Calc Leech plugin.\n\n|cFFFFFF00v5.10 (|cFFFFCC00July 19, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Using .BLP format for images. If you have FPS drops caused by Details!, delete ALL .TGA files inside the folder Details/Images/\n\n|cFFFFFF00v5.8 (|cFFFFCC00July 11, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Big framework update. May have some bugs, please report to us if you find any.\n\n|cFFFFFF00v5.8 (|cFFFFCC00June 27, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Energy and Resources are working properly now.\n\n|cFFFFFF00-|r Added raid information for The Emerald Nightmare.\n\n|cFFFFFF00v5.7 (|cFFFFCC00June 16, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Most of the raid plugins got added on this version.\n\n|cFFFFFF00-|r Plugin 'Damage, The Game!' also got damage goals updated.\n\n|cFFFFFF00v5.5 (|cFFFFCC00June 03, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Default skin is now 'Safe Skin Legion Beta' which helps a little with the disabled texture issue.\n|cFFFFFF00-|r If you're using another skin, you may change at the options panel /details options > Skin Selection.\n|cFFFFFF00-|r You also can disable the class icons at Bars: General > Icon File." + Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v5.13 (|cFFFFCC00July 30, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r 'Minimalistic' is once again the default skin for new windows, changed from the 'Safe Beta Skin'.\n\n|cFFFFFF00-|r Fixed some issues with spec detection and LibGroupInSpecT-1.1 has need enabled back again.\n\n|cFFFFFF00-|r Fixed an issue with micro displays not loading settings after a logon.\n\n|cFFFFFF00-|r Another wave of workarounds to prevent the client image cache bug.\n\n|cFFFFFF00-|r fixed the spam of 'segment not added to overall'.\n\n|cFFFFFF00-|r stormlash and blessing of might workarouds.\n\n|cFFFFFF00-|r warrior rampage fix.\n\n|cFFFFFF00-|r hunter throw axe fix.\n\n|cFFFFFF00v5.10c (|cFFFFCC00July 22, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Trying a workaround for the wow client's texture cache bug which causes FPS drops, please delete the file 'spec_icons_normal.TGA' from details/image folder.\n\n|cFFFFFF00v5.10b (|cFFFFCC00July 21, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed warlock's Soul Effigy.\n\n|cFFFFFF00v5.10a (|cFFFFCC00July 20, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed an issue with Calc Leech plugin.\n\n|cFFFFFF00v5.10 (|cFFFFCC00July 19, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Using .BLP format for images. If you have FPS drops caused by Details!, delete ALL .TGA files inside the folder Details/Images/\n\n|cFFFFFF00v5.8 (|cFFFFCC00July 11, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Big framework update. May have some bugs, please report to us if you find any.\n\n|cFFFFFF00v5.8 (|cFFFFCC00June 27, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Energy and Resources are working properly now.\n\n|cFFFFFF00-|r Added raid information for The Emerald Nightmare.\n\n|cFFFFFF00v5.7 (|cFFFFCC00June 16, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Most of the raid plugins got added on this version.\n\n|cFFFFFF00-|r Plugin 'Damage, The Game!' also got damage goals updated.\n\n|cFFFFFF00v5.5 (|cFFFFCC00June 03, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Default skin is now 'Safe Skin Legion Beta' which helps a little with the disabled texture issue.\n|cFFFFFF00-|r If you're using another skin, you may change at the options panel /details options > Skin Selection.\n|cFFFFFF00-|r You also can disable the class icons at Bars: General > Icon File." Loc ["STRING_DETAILS1"] = "|cffffaeaeDetails!:|r " @@ -143,7 +143,7 @@ do --> armazena instancias inativas _detalhes.unused_instances = {} --_detalhes.default_skin_to_use = "Minimalistic" - _detalhes.default_skin_to_use = "Safe Skin Legion Beta" --legion beta + _detalhes.default_skin_to_use = "Minimalistic" _detalhes.instance_title_text_timer = {} --> player detail skin _detalhes.playerdetailwindow_skins = {} diff --git a/classes/container_combatentes.lua b/classes/container_combatentes.lua index ecb4e691..5cef3993 100644 --- a/classes/container_combatentes.lua +++ b/classes/container_combatentes.lua @@ -42,7 +42,6 @@ local container_enemydebufftarget_target = _detalhes.container_type.CONTAINER_ENEMYDEBUFFTARGET_CLASS local container_pets = {} - local cached_specs = _detalhes.cached_specs --> flags local REACTION_HOSTILE = 0x00000040 @@ -69,7 +68,7 @@ function container_combatentes:GetSpellSource (spellid) local t = self._ActorTable - print ("getting the source", spellid, #t) + --print ("getting the source", spellid, #t) for i = 1, #t do if (t[i].spells._ActorTable [spellid]) then return t[i].nome @@ -144,8 +143,10 @@ novo_objeto.spec = have_cached --> check is didn't changed the spec: _detalhes:ScheduleTimer ("ReGuessSpec", 15, {novo_objeto, self}) + --print (nome, "spec em cache:", have_cached) else _detalhes:ScheduleTimer ("GuessSpec", 3, {novo_objeto, self, 1}) + --print (nome, "nao tem") end end diff --git a/functions/playerclass.lua b/functions/playerclass.lua index 27b3047c..46f66698 100644 --- a/functions/playerclass.lua +++ b/functions/playerclass.lua @@ -252,7 +252,6 @@ do function _detalhes:GuessSpec (t) local Actor, container, tries = t[1], t[2], t[3] - if (not Actor) then return false end @@ -283,6 +282,7 @@ do --> get from the spell cast list if (_detalhes.tabela_vigente) then local misc_actor = _detalhes.tabela_vigente (4, Actor.nome) + if (misc_actor and misc_actor.spell_cast) then for spellid, _ in pairs (misc_actor.spell_cast) do local spec = SpecSpellList [spellid] @@ -304,6 +304,29 @@ do return spec end end + else + if (Actor.spells) then --> correcao pros containers misc, precisa pegar os diferentes tipos de containers de lá + for spellid, _ in _pairs (Actor.spells._ActorTable) do + local spec = SpecSpellList [spellid] + if (spec) then + _detalhes.cached_specs [Actor.serial] = spec + + Actor.spec = spec + Actor.guessing_spec = nil + + 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 + _detalhes:ScheduleWindowUpdate (2, true) + end + + return spec + end + end + end end else diff --git a/functions/spells.lua b/functions/spells.lua index f9db5233..7fdd7b1e 100644 --- a/functions/spells.lua +++ b/functions/spells.lua @@ -16,7 +16,7 @@ do [175821] = true, --draenic pure rage potion } - _detalhes.SpecSpellList = { + _detalhes.SpecSpellList = { --~spec --demonhunter shared -- [185123] = ??, -- "Throw Glaive" @@ -66,8 +66,12 @@ do -- Frost Death Knight: [130735] = 251, -- Soul Reaper [51271] = 251, -- Pillar of Frost - [49020] = 251, -- Obliterate - [49143] = 251, -- Frost Strike + [49020] = 251, -- Obliterate --old? + [66198] = 251, -- Obliterate Off-Hand + [222024] = 251, -- Obliterate + [49143] = 251, -- Frost Strike --old? + [222026] = 251, -- Frost Strike + [66196] = 251, -- Frost Strike Off-Hand [49184] = 251, -- Howling Blast -- Blood Death Knight: @@ -226,7 +230,9 @@ do [20164] = 70, -- Seal of Justice [879] = 70, -- Exorcism [53385] = 70, -- Divine Storm - [85256] = 70, -- Templar's Verdict + [224266] = 70, -- Templar's Verdict + [224239] = 70, -- Divine Storm + [184575] = 70, --Blade of Justice -- Discipline Priest: [152118] = 256, -- Clarity of Will @@ -263,19 +269,33 @@ do [15407] = 258, -- Mind Flay -- Assassination Rogue: - [79140] = 259, -- Vendetta - [111240] = 259, -- Dispatch [32645] = 259, -- Envenom [1329] = 259, -- Mutilate + [5374] = 259, -- Mutilate + [27576] = 259, -- Mutilate Off-Hand [79134] = 259, -- Venomous Wounds + [192759] = 259, -- Kingsbane + [222062] = 259, -- Kingsbane + [192760] = 259, -- Kingsbane + [185565] = 259, -- Poisoned Knife + [51723] = 259, -- Fan of Knives + [703] = 259, -- Garrote + [192434] = 259, -- From the Shadows + [1943] = 259, -- Rupture - -- Combat Rogue: - [51690] = 260, -- Killing Spree - [84617] = 260, -- Revealing Strike + -- Outlaw Rogue: + [2098] = 260, -- Run Through + [193315] = 260, -- Saber Slash + [185763] = 260, -- Pistol Shot + [199804] = 260, -- Between the Eyes + [86392] = 260, -- Main Gauche -- Subtlety Rogue: [53] = 261, -- Backstab - [16511] = 261, -- Hemorrhage + [197835] = 261, -- Shuriken Storm + [196819] = 261, -- Eviscerate + [121473] = 261, -- Shadow Blade + [195452] = 261, -- Nightblade -- Elemental Shaman: [165399] = 262, -- Elemental Overload diff --git a/images/logotipo.blp b/images/logotipo.blp index 197b3015..a8e72bfd 100644 Binary files a/images/logotipo.blp and b/images/logotipo.blp differ diff --git a/images/spec_icons_normal_alpha.blp b/images/spec_icons_normal_alpha.blp index a2d9e1c2..795a3a72 100644 Binary files a/images/spec_icons_normal_alpha.blp and b/images/spec_icons_normal_alpha.blp differ