So, I was bored while updating my router-firmware and did a little castsequence thinking. Basically I'm trying to come up with a good castsequence which will work for 3.0/wotlk. Any input is appreciated.

Lightning bolt = 2.5 casttime (no cooldown)
Chain lightning = 1.5 casttime (3.5 CD)
Flame shock = instant, 15 sec duration with glyph, (6 sec cooldown untalented)
Lava burst = 1.5 casttime (8 sec CD)

Wrath = 1.5 casttime (no cooldown) - applies Earth and Moon (EM), 13% spelldmg increse
Starfire = 3.0 casttime (no cooldown) - applies Earth and Moon (EM), 13% spelldmg increse
Moonfire = instant, 12 sec duration
Insect swarm = instant, 12 sec duration

The idea behind the castsequence:

- Apply EM as soon as possible since it applies to shaman as well
- Allow flame shock to tick as long as possible before casting crit lava burst for mana save, for burst damage see alternate sequence below
- Get increased crit effect from swarm/moonfire combination while refreshing EM (druid only)

MPS sequence:

Druid

0.00 Wrath
0.50 - casting
1.00 - casting
1.50 Insect swarm, EM and swarm applied
2.00 - gcd
2.50 - gcd
3.00 Moonfire, Moonfire applied
3.50 - gcd
4.00 - gcd
4.50 Starfire
5.00 - casting
5.50 - casting
6.00 - casting
6.50 - casting
7.00 - casting
7.50 Starfire, EM refreshed
8.00 - casting
8.50 - casting
9.00 - casting
9.50 - casting
10.00 - casting
10.50 Starfire, EM refreshed
11.00 - casting
11.50 - casting
12.00 - casting
12.50 - casting
13.00 - casting
13.50 Restart, Swarm expire

/castsequence reset=target wrath, insect swarm, moonfire, starfire, starfire, starfire

Shaman

0.00 Flame shock, Flame shock applied
0.50 - gcd
1.00 - gcd
1.50 CL
2.00 - casting
2.50 - casting
3.00 LB CL cast, FS tick
3.50 - casting
4.00 - casting
4.50 - casting
5.00 LB
5.50 - casting
6.00 - casting, Shock CD, FS tick
6.50 - casting, CL CD
7.00 CL
7.50 - casting
8.00 - casting
8.50 LB CL cast
9.00 - casting, FS tick
9.50 - casting
10.00 - casting
10.50 LB, CL CD
11.00 - casting
11.50 - casting
12.00 - casting, FS tick
12.50 CL
13.00 - casting
13.50 - casting
14.00 Lava burst
14.50 - casting
15.00 - casting, Flameshock consumed
15.50 Restart

/castsequence reset=target flame shock, chain lightning, lightning bolt, lightning bolt, chain lightning, lightning bolt, lightning bolt, chain lightning, lava burst

DPS sequence:

Shaman (druid is the same)

0.00 Flame shock, Flame shock cast
0.50 - gcd
1.00 - gcd
1.50 Lava burst
2.00 - casting
2.50 - casting
3.00 CL, Flameshock consumed
3.50 - casting
4.00 - casting
4.50 LB
5.00 - casting
5.50 - casting
6.00 - casting, Shock CD

/castsequence reset=target flame shock, lava burst, chain lightning, lightning bolt

In making these sequences, I've made a couple of assumptions:

- there is no lag (so they need to be adjusted accordingly)
- flameshock will not expire before it's consumed (again assuming no lag), this can be fixed by switching the positions of the last CL and the lava burst, which will make flame shock lose one damage tick

I have little experience in theorycrafting and doing the sequences so I was hoping some more experienced people could help me with a couple of questions:

1) With glyph, flameshock will expire it's 15 second duration at the start of sec 15 - if there is any lag, will this mean the lava burst won't get the guaranteed crit?

2) Is there anything I have theoretically missed in the sequence above?