Hello again pnutbutter.
I recently decided to try to write a weakaura that accomplishes such a task for heroic Thok.
http://pastebin.com/esK0SShX
The goal was threefold:
1.) Display a text aura with the entire CD rotation (simple to do in WA)
2.) Dynamically update a second text aura based on Thok's stacks of "Acceleration" that says who's CD should be being used right now.
3.) Announce via raid warning who's CD is up next, again based on Thok's stacks.
Now, I started coding these auras AFTER last week's heroic Thok kill, so I haven't had a chance to test if they work in action, but it should work in concept.
The only struggle I had was figuring out where to put the code for the RaidWarning. I ended up putting it inside the custom text function of the second text aura:
Code:
function()
local cdRotationThok = {
[3]="4- VE (Prodigy)",
[4]="5- Banner (Lts) ",
[6]="7- AM (Avoka) ",
[7]="8- Tide (Ozzy) ",
[8]="9- RC (Lts) ",
[10]="11- Tide (Anabolik) ",
[11]="12- Banner (Porky) ",
[13]="14- BoP Tranq (Krippsy) ",
[14]="15- Tide (Tiny) ",
[15]="16- AM (Rayne) ",
[17]="18- BoP Tranq (Scorch) ",
[19]="20- Collapse, Barrier (Navi), RC (Porky) ",
[21]="22- Barrier (Bael), Smokebomb (Rivai) ",
[22]="23- Tranq (Fyasko) ",
[23]="24- Spirit Link (Tiny)"
}
local thokAccel = select(4, UnitBuff("boss1", "Acceleration"));
local msgRW = cdRotationThok[thokAccel];
SendChatMessage(msgRW or "", "RAID_WARNING", nil);
return cdRotationThok[thokAccel] or nil;
end
I have the raidwarning trigger one stack early... So if we want a Tranquility at stack 20, the raid warning will trigger when Thok hits stack 19.
I'll find out either tonight or tomorrow, depending on if we get to Thok tonight or tomorrow, if this actually works.