2021-05-26 22:02:15 +02:00
|
|
|
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)
|