Files
coa-details/functions/mixin.lua
T
2023-02-07 13:46:35 -03:00

24 lines
572 B
Lua

local Details = _G.Details
local detailsFramework = _G.DetailsFramework
local openRaidLib = LibStub:GetLibrary("LibOpenRaid-1.0", true)
local addonName, Details222 = ...
Details222.Mixins.ActorMixin = {
GetSpellContainer = function(self, containerType)
if (containerType == "debuff") then
return self.debuff_uptime_spells
elseif (containerType == "buff") then
return self.buff_uptime_spells
elseif (containerType == "spell") then
return self.spells
elseif (containerType == "cooldowns") then
return self.cooldowns_defensive_spells
end
end,
}