From 999be46647dd7e6978bc54ead8e303d11d406b9f Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Sun, 4 Jul 2021 18:52:41 -0300 Subject: [PATCH] Fix some issues with the Coach --- Libs/DF/fw.lua | 2 +- Libs/DF/panel.lua | 2 +- functions/pack.lua | 21 +++++++++++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/Libs/DF/fw.lua b/Libs/DF/fw.lua index 3433a9d12..fc35240a7 100644 --- a/Libs/DF/fw.lua +++ b/Libs/DF/fw.lua @@ -1,6 +1,6 @@ -local dversion = 257 +local dversion = 258 local major, minor = "DetailsFramework-1.0", dversion local DF, oldminor = LibStub:NewLibrary (major, minor) diff --git a/Libs/DF/panel.lua b/Libs/DF/panel.lua index 85083c688..154805a8a 100644 --- a/Libs/DF/panel.lua +++ b/Libs/DF/panel.lua @@ -1988,7 +1988,7 @@ function DF:CreateScaleBar (frame, config) frame:SetScale (config.scale) end) - scaleBar:SetAlpha (0.2) + scaleBar:SetAlpha (0.5) return scaleBar end diff --git a/functions/pack.lua b/functions/pack.lua index 23eb52a66..07db92322 100644 --- a/functions/pack.lua +++ b/functions/pack.lua @@ -1426,6 +1426,11 @@ function Details.packFunctions.UnPackUtility(currentCombat, combatData, tablePos local targetsSize = tonumber(combatData[spellIndex+2]) --[3] local targetTable = Details.packFunctions.UnpackTable(combatData, spellIndex+2, true) + + if (not actorObject.cooldowns_defensive_spells) then + actorObject.cooldowns_defensive_spells = Details.container_habilidades:NovoContainer(Details.container_type.CONTAINER_MISC_CLASS) + end + local spellObject = actorObject.cooldowns_defensive_spells:GetOrCreateSpell(spellId, true) spellObject.counter = spellTotal @@ -1468,6 +1473,10 @@ function Details.packFunctions.UnPackUtility(currentCombat, combatData, tablePos local targetsSize = tonumber(combatData[spellIndex+2]) --[3] local targetTable = Details.packFunctions.UnpackTable(combatData, spellIndex+2, true) + + if (not actorObject.interrupt_spells) then + actorObject.interrupt_spells = Details.container_habilidades:NovoContainer(Details.container_type.CONTAINER_MISC_CLASS) + end local spellObject = actorObject.interrupt_spells:GetOrCreateSpell(spellId, true) spellObject.counter = spellTotal @@ -1521,6 +1530,10 @@ function Details.packFunctions.UnPackUtility(currentCombat, combatData, tablePos local targetsSize = tonumber(combatData[spellIndex+2]) --[3] local targetTable = Details.packFunctions.UnpackTable(combatData, spellIndex+2, true) + + if (not actorObject.cc_break_spells) then + actorObject.cc_break_spells = Details.container_habilidades:NovoContainer(Details.container_type.CONTAINER_MISC_CLASS) + end local spellObject = actorObject.cc_break_spells:GetOrCreateSpell(spellId, true) spellObject.cc_break = spellTotal @@ -1574,6 +1587,10 @@ function Details.packFunctions.UnPackUtility(currentCombat, combatData, tablePos local targetsSize = tonumber(combatData[spellIndex+2]) --[3] local targetTable = Details.packFunctions.UnpackTable(combatData, spellIndex+2, true) + + if (not actorObject.dispell_spells) then + actorObject.dispell_spells = Details.container_habilidades:NovoContainer(Details.container_type.CONTAINER_MISC_CLASS) + end local spellObject = actorObject.dispell_spells:GetOrCreateSpell(spellId, true) spellObject.dispell = spellTotal @@ -1628,6 +1645,10 @@ function Details.packFunctions.UnPackUtility(currentCombat, combatData, tablePos local targetsSize = tonumber(combatData[spellIndex+2]) --[3] local targetTable = Details.packFunctions.UnpackTable(combatData, spellIndex+2, true) + + if (not actorObject.ress_spells) then + actorObject.ress_spells = Details.container_habilidades:NovoContainer(Details.container_type.CONTAINER_MISC_CLASS) + end local spellObject = actorObject.ress_spells:GetOrCreateSpell(spellId, true) spellObject.ress = spellTotal