November 12, 20178 yr 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.
November 12, 20178 yr Hello, try lua code like: local name = GetSpellInfo(12345); RunMacroText("/cancelaura " .. name) (replace 12345 by your spell id)
November 13, 20178 yr Author 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.
Create an account or sign in to comment