Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing spells via NugRunningUserConfig doesn't work #51

Open
jooenj opened this issue Feb 4, 2022 · 4 comments
Open

Removing spells via NugRunningUserConfig doesn't work #51

jooenj opened this issue Feb 4, 2022 · 4 comments

Comments

@jooenj
Copy link

jooenj commented Feb 4, 2022

local helpers = NugRunning.helpers
local Spell, ModSpell = helpers.Spell, helpers.ModSpell
local Cooldown, ModCooldown = helpers.Cooldown, helpers.ModCooldown
local Activation, ModActivation = helpers.Activation, helpers.ModActivation
local EventTimer = helpers.EventTimer
local Talent = helpers.Talent
local Glyph = helpers.Glyph
local GetCP = helpers.GetCP
local _,class = UnitClass("player")
local colors = NugRunningConfig.colors

if class == "WARLOCK" then
-- ModSpell(348, { color = colors.WOO }) -- modifying Immolate color
-- Spell(348, nil) -- remove immolate
end

if class == "PRIEST" then
Spell(139, nil)
end

if class == "ROGUE" then

end

if class == "WARRIOR" then

end

if class == "MAGE" then

end

if class == "DRUID" then

end

if class == "DEATHKNIGHT" then

end

if class == "HUNTER" then

end

if class == "SHAMAN" then

end

if class == "PALADIN" then

end

@jooenj
Copy link
Author

jooenj commented Feb 4, 2022

Is this right code to remove spells?

@d87
Copy link
Member

d87 commented Feb 4, 2022

Yeah, Spell(139, nil) is broken.
Use NugRunningConfig.spells[139] = nil instead for now or just use the GUI if you aren't going to remove a hundred spells

@jooenj
Copy link
Author

jooenj commented Feb 4, 2022

@d87 Thank you, "NugRunningConfig.spells[139] = nil" works perfectly. Is there GUI options for removing spells? I installed yours from curseForge yesterday but I can't find proper GUI options.

@d87
Copy link
Member

d87 commented Feb 4, 2022

/nrun gui

And there find spell in the spell list, check Disabled and hit Save

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants