Add cleu event for buff applied
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
wow_Meta
|
@@ -5,17 +5,21 @@ local addonname, shared = ...
|
|||||||
---@field blacklistedBuffs table<string, boolean>
|
---@field blacklistedBuffs table<string, boolean>
|
||||||
|
|
||||||
local function init()
|
local function init()
|
||||||
print("Dechickenator loaded!")
|
|
||||||
|
|
||||||
local cleuFrame = CreateFrame("Frame")
|
local cleuFrame = CreateFrame("Frame")
|
||||||
cleuFrame:RegisterEvent("CLEU")
|
cleuFrame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
|
||||||
cleuFrame:SetScript("OnEvent", function(self, event, ...)
|
cleuFrame:SetScript("OnEvent", function(self, event, ...)
|
||||||
local subevent = CLEUParser.GetSubevent(...)
|
local subevent = CLEUParser.GetSubevent(...)
|
||||||
if subevent == "SPELL_AURA_APPLIED" then
|
if subevent == "SPELL_AURA_APPLIED" then
|
||||||
|
local target = CLEUParser.GetDestName(...)
|
||||||
|
if target ~= UnitName("player") then return end
|
||||||
local spellName = CLEUParser.GetSpellName(...)
|
local spellName = CLEUParser.GetSpellName(...)
|
||||||
|
if not shared.Dechickenator_Data.blacklistedBuffs[spellName] then return end
|
||||||
|
|
||||||
print(spellName)
|
print(spellName)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
print("Dechickenator loaded!")
|
||||||
end
|
end
|
||||||
|
|
||||||
local loadedFrame = CreateFrame("Frame")
|
local loadedFrame = CreateFrame("Frame")
|
||||||
|
Reference in New Issue
Block a user