incarceron 0 Posted November 12, 2017 Share Posted November 12, 2017 I'm interested in learning how one would go about cancelling a buff/aura within a c# fightclass, specifically within the LUA frame of vanilla wow. Obviously to check and buff the character something simple like this would do: public Spell arcaneInt = new Spell("Arcane Intellect"); public void buffPlayer(){ if(arcaneInt.KnownSpell && !ObjectManager.Me.HaveBuff("Arcane Intellect")){ arcaneInt.Launch(); } } but since I can't find docs for the wRobot API anywhere I'm unsure if there's a method to remove a buff or if I would need to write one myself. Link to comment Share on other sites More sharing options...
Droidz 2733 Posted November 12, 2017 Share Posted November 12, 2017 Hello, try lua code like: local name = GetSpellInfo(12345); RunMacroText("/cancelaura " .. name) (replace 12345 by your spell id) Link to comment Share on other sites More sharing options...
incarceron 0 Posted November 13, 2017 Author Share Posted November 13, 2017 20 hours ago, Droidz said: Hello, try lua code like: local name = GetSpellInfo(12345); RunMacroText("/cancelaura " .. name) (replace 12345 by your spell id) It seems vanilla doesn't have "/cancelaura" as a Lua function. I found an addon that added extra macro functionality and I was able to use your snippet. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now