wow-addons/z-!!!RemoveHonorless/RemoveHonorless.lua

12 lines
285 B
Lua

local frame = CreateFrame("FRAME")
frame:SetScript("OnUpdate", function(self, elapsed)
for i = 1, 255 do
_, _, _, _, _, _, _, _, _, spellId = UnitBuff("player", i)
if spellId == 2479 then
CancelUnitBuff("player", i)
frame:SetScript("OnUpdate", nil)
break
end
end
end)