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",
|
||||
"Ancestral Fortitude",
|
||||
"Headmaster's Charge",
|
||||
"Seal of the Dawn",
|
||||
"Champion of the Dawn",
|
||||
}
|
||||
local cancelBlacklistedAurasMacro = "/cancelaura " .. table.concat(blacklistedAuras, "\n/cancelaura ")
|
||||
|
||||
|
@ -48,9 +50,10 @@ local frame = CreateFrame("FRAME")
|
|||
frame:RegisterEvent("PLAYER_REGEN_ENABLED")
|
||||
frame:RegisterEvent("PLAYER_ENTERING_WORLD")
|
||||
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
|
||||
return button:SetAttribute("macrotext", cancelBlacklistedAurasMacro)
|
||||
end
|
||||
return button:SetAttribute("macrotext", "/stopmacro")
|
||||
end)
|
||||
|
||||
|
|
Loading…
Reference in a new issue