Update ByeByeBuffs: Add Phase 6 Argent Dawn trinkets.
This commit is contained in:
parent
f808f7e5a4
commit
02d9e7d19f
|
@ -37,6 +37,8 @@ local blacklistedAuras = {
|
||||||
"Healing Way",
|
"Healing Way",
|
||||||
"Ancestral Fortitude",
|
"Ancestral Fortitude",
|
||||||
"Headmaster's Charge",
|
"Headmaster's Charge",
|
||||||
|
"Seal of the Dawn",
|
||||||
|
"Champion of the Dawn",
|
||||||
}
|
}
|
||||||
local cancelBlacklistedAurasMacro = "/cancelaura " .. table.concat(blacklistedAuras, "\n/cancelaura ")
|
local cancelBlacklistedAurasMacro = "/cancelaura " .. table.concat(blacklistedAuras, "\n/cancelaura ")
|
||||||
|
|
||||||
|
@ -48,9 +50,10 @@ local frame = CreateFrame("FRAME")
|
||||||
frame:RegisterEvent("PLAYER_REGEN_ENABLED")
|
frame:RegisterEvent("PLAYER_REGEN_ENABLED")
|
||||||
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
|
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
|
||||||
frame:SetScript("OnEvent", function(self, event, ...)
|
frame:SetScript("OnEvent", function(self, event, ...)
|
||||||
local isWorldBuffed = IsInRaid() and UnitAura("player", 18, "HELPFUL") -- simply checks for more than 18 buffs
|
local isWorldBuffed = IsInRaid() and UnitAura("player", 17, "HELPFUL") -- simply checks for more than 17 buffs
|
||||||
if isWorldBuffed then
|
if isWorldBuffed then
|
||||||
return button:SetAttribute("macrotext", cancelBlacklistedAurasMacro)
|
return button:SetAttribute("macrotext", cancelBlacklistedAurasMacro)
|
||||||
end
|
end
|
||||||
return button:SetAttribute("macrotext", "/stopmacro")
|
return button:SetAttribute("macrotext", "/stopmacro")
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue