What would be the best way to detect when a BigWigs boss module load?
In an addon I'm wrinting I'm trying to do stuff when a BigWigs boss module load.
I've looked around a bit in the code and there's no specific event that fires.
BigWigs fires an event when the core loads ("BigWigs_CoreEnabled") but there's nothing similar for the boss modules.
The closest (and what I'm using using for now) is "Ace2_AddonEnabled" but that fires for every Ace2 addon, not just the boss modules. Regestering after "BigWigs_CoreEnabled" has fired takes away most of the false positives but I'm hoping there's a better solution.
local t = mod and mod.enabletrigger and type(mod.enabletrigger) or nil
if not t then return end
if t == "table" then
for i, v in ipairs(mod.enabletrigger) do
bossmobs[v] = not bossmobs[v] and true or nil
elseif t == "string" then
bossmobs[mod.enabletrigger] = not bossmobs[mod.enabletrigger] and true or nil
is the code used in the boss block module, i believe you'll find some of it useufll.
It's very close to what I was doing already. I was using:
local boss = addon.name
if boss then
Problem is: All addons have an addon.name not only bossmods.
Solution: I'll just check if the addon have addon.enabletrigger. If it has then it's most probably a bossmod and if it don't then it's not! :D