Quantcast

Fix state.nextCast to actually be the earliest start for next GCD spell.

Author Johnny C. Lam <jlam88@gmail.com>
Author date 2015-01-01 09:36:46
Author local date 2015-01-01 04:36:46 -0500
Committer Johnny C. Lam <jlam88@gmail.com>
Committer date 2015-01-01 14:22:53
Committer local date 2015-01-01 09:22:53 -0500
Commit 50ae49c2ab90d98af82031781dfbd78673804fdd
Tree e9050d0c595e33b321da3389298c968ea9431f64
Parent 4229097d0f9f71df58da59003f58d6f64b9abe02
Fix state.nextCast to actually be the earliest start for next GCD spell.

This change also makes off-GCD spells suggested only when the GCD is not
on cooldown, which matches the behavior of SimulationCraft.

To allow a spell to be suggested during the global cooldown, it should be
tagged in the SpellInfo() with "offgcd=1".  This is useful for some spells
that should be cast right away, e.g., defensive cooldowns.

Fixes ticket 507 by @ShmooDude.