Add !!!RemoveHonorless AddOn.

This commit is contained in:
Casper V. Kristensen 2020-11-21 12:15:23 +01:00
parent 02d9e7d19f
commit 4dff3cda79
Signed by: caspervk
GPG key ID: 289CA03790535054
3 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,10 @@
## Interface: 11305
## Title: !!!RemoveHonorless
## Notes: Automatically remove the Honorless Target buff upon logging in.
## Author: Caspervk
## Version: 0.0.1
## X-License: GNU General Public License v3 or later (GPLv3+)
RemoveHonorless.lua

2
!!!RemoveHonorless/README.md Executable file
View file

@ -0,0 +1,2 @@
# RemoveHonorless
World of Warcraft Classic AddOn that automatically removes the Honorless Target buff as soon as you log in.

View file

@ -0,0 +1,11 @@
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)