I'm a Paladin. My specs are Protection and Retribution. I want to write a macro that basically says:

if Protection
  mark target with skull

Then I can replace my assist key with it to quickly be able to mark targets while tanking, but assist the tank when DPSing.


3 Answers 3


You can indeed do several things depending on your spec. To achieve your example goal, try the below. This uses a combination of macro conditionals and Lua scripting.

/script if (GetActiveTalentGroup()==1) then SetRaidTarget("target", 8); end;
/assist [spec:2]

What this says is, if I'm in spec 1, then set raid target 8 (skull). Then, assist my target, if I am in spec 2.

See Macro Conditionals for full documentation on the conditional statements you can use.

  • After 5.0.4 update, function is now GetActiveSpecGroup. Sep 7, 2012 at 14:46

You should be able to use GetActiveTalentGroup() which returns the active talent group (1 or 2).

It takes two parameters isInspect and isPet, for what you want to do though you'd probably want them both to be false.



As you bars change when you change spec, make two different macros.

I know, there are too few macro slots.

The other way is (untested as I don't play anymore) :

/assist [spec:1]
/stopmacro [spec:1]
/script SetRaidTarget("target",8)

Perhaps in your case it is [spec:2].

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .