Skip to content

Commit

Permalink
Fix some issues with the Coach
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Jul 4, 2021
1 parent fce191b commit 999be46
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Libs/DF/fw.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


local dversion = 257
local dversion = 258

local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary (major, minor)
Expand Down
2 changes: 1 addition & 1 deletion Libs/DF/panel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
21 changes: 21 additions & 0 deletions functions/pack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 999be46

Please sign in to comment.