Update ByeByeBuffs: Add Phase 6 Argent Dawn trinkets.

This commit is contained in:
Casper V. Kristensen 2020-11-21 12:14:30 +01:00
parent f808f7e5a4
commit 02d9e7d19f
Signed by: caspervk
GPG key ID: 289CA03790535054

View file

@ -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)