Add !!!RemoveHonorless AddOn.
This commit is contained in:
parent
02d9e7d19f
commit
4dff3cda79
10
!!!RemoveHonorless/!!!RemoveHonorless.toc
Executable file
10
!!!RemoveHonorless/!!!RemoveHonorless.toc
Executable 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
2
!!!RemoveHonorless/README.md
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
# RemoveHonorless
|
||||||
|
World of Warcraft Classic AddOn that automatically removes the Honorless Target buff as soon as you log in.
|
11
!!!RemoveHonorless/RemoveHonorless.lua
Executable file
11
!!!RemoveHonorless/RemoveHonorless.lua
Executable 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)
|
Loading…
Reference in a new issue