A very simple addon that helps you make working macros for the new tier based talents in 5.0.4 (MoP)
At least until they make #showtooltip able to handle the new system.
Technically you could do this kind of macro:
But then you are stuck with the issue that you wont have the correct icon/tooltip.
You could solve that problem by doing something like this
/run SetMacroSpell("MacroName",GetSpellInfo("ability1") or "ability2")
However the problem with that is that you have to click the macro once for it to update the icon/tooltip correctly.
This addon solves those issues completely and lets you make proper macros.
You simply make an empty macro with any icon but with the name "tier_#", where # is the number of the talent tier you want the macro for. (1-6, top to bottom), it is not case sensitive.
It does not matter if it is in the general or player specific macro section, though of course if you want it available cross-character then I would recommend putting in the general section.
Make sure you get the name right though, it won't work otherwise.
And that is it, the addon will do the rest.
What it does is that it edits your macro to the appropriate ability every time you swap a talent for that tier.
Note that you will most likely need to swap a talent for that tier or swap you spec for the macro to initialize, though this only has to be done the very first time.
Also make sure you do not have more than one macro per tier as it can cause issues.
Cpu usage is essentially zero if anyone was wondering, as it only operates when you swap a talent.
Reverted back to the non-lib version, but kept some in combat error protection since blizzard still hasn't fixed the problem with PLAYER_TALENT_UPDATE firing 'randomly' for some ppl, seems to be especially warlock related, I've never been able to replicate it myself but it's definitely there. http://wow.curseforge.com/addons/tellmewhen/tickets/949
As I'm not using this addon myself since 5.2~ don't expect anything major to be changed.
I have also enabled so anyone that has some good changes can upload them here as optional files.
Update TOC for 5.4
Added some additional code for handling in-combat scenarios based upon comments.
Update TOC for 5.3
Update TOC for 5.2
Update TOC for 5.1
Cleaned the code a bit. y u heff to be so good nebula169!
Fixed a minor issue that occurred when swapping characters.