PVP talent conditonal

#showtooltip
/cast Slam
/cast Sharpen Blade
/run local G=GetSpellInfo SetMacroSpell(GetRunningMacro(), G"Sharpen Blade")

I’d like it to cast slam if sharpen blade is not active, and cast sharpen blade if sharpen blade is active (in pvp).

Is that possible?

You’re almost there. Make sure to test for the PvP talent first.

how???

/run local G=GetSpellInfo SetMacroSpell(GetRunningMacro(), G"Sharpen Blade")

I thought this was testing for it?

Add both spells to it.

#showtooltip
/cast Sharpen Blade
/cast Slam
/run local G=GetSpellInfo SetMacroSpell(GetRunningMacro(), G"Sharpen Blade" or G"Slam")