Jump to content

Recommended Posts

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
https://wrobot.eu/forums/topic/7631-how-to-cancelaura-within-c-fightclass/
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...