ByeByeBuffs: less print spam.
This commit is contained in:
parent
b582d6b602
commit
0b1eb64016
|
@ -50,10 +50,7 @@ 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", 18, "HELPFUL") -- simply checks for more than 18 buffs
|
||||||
if isWorldBuffed then
|
if isWorldBuffed then
|
||||||
print(("%s: World-buffed."):format(ByeByeBuffs.title))
|
|
||||||
return button:SetAttribute("macrotext", cancelBlacklistedAurasMacro)
|
return button:SetAttribute("macrotext", cancelBlacklistedAurasMacro)
|
||||||
end
|
end
|
||||||
print(("%s: not World-buffed."):format(ByeByeBuffs.title))
|
|
||||||
return button:SetAttribute("macrotext", "/stopmacro")
|
return button:SetAttribute("macrotext", "/stopmacro")
|
||||||
|
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in a new issue