Bastion aims to serve as a highly performant, simplisitic, and expandable World of Warcraft data visualization framework.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
local Tinkr, Bastion = ...
|
|
|
|
|
|
|
|
local MythicPlusUtils = {
|
|
|
|
debuffLogging = false,
|
|
|
|
random = ''
|
|
|
|
}
|
|
|
|
|
|
|
|
MythicPlusUtils.__index = MythicPlusUtils
|
|
|
|
|
|
|
|
function MythicPlusUtils:New()
|
|
|
|
local self = setmetatable({}, MythicPlusUtils)
|
|
|
|
|
|
|
|
self.random = math.random(1000000, 9999999)
|
|
|
|
|
|
|
|
Bastion.EventManager:RegisterWoWEvent('UNIT_AURA', function(unit, auras)
|
|
|
|
if not self.debuffLogging then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
local addedAuras = auras.addedAuras
|
|
|
|
|
|
|
|
if #addedAuras > 0 then
|
|
|
|
for i = 1, #addedAuras do
|
|
|
|
local aura = Bastion.Aura:CreateFromUnitAuraInfo(addedAuras[i])
|
|
|
|
if not aura:IsBuff() then
|
|
|
|
WriteFile('bastion-MPlusDebuffs-' .. self.random .. '.lua', [[
|
|
|
|
AuraName: ]] .. aura:GetName() .. [[
|
|
|
|
AuraID: ]] .. aura:GetID() .. [[
|
|
|
|
]], true)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end)
|
|
|
|
|
|
|
|
return self
|
|
|
|
end
|
|
|
|
|
|
|
|
function MythicPlusUtils:ToggleDebuffLogging()
|
|
|
|
self.debuffLogging = not self.debuffLogging
|
|
|
|
end
|
|
|
|
|
|
|
|
function MythicPlusUtils:HasCriticalDispel(unit)
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
return MythicPlusUtils
|