Quantcast

Factor in power regen time for spell "readiness".

Author Johnny C. Lam <jlam88@gmail.com>
Author date 2014-04-25 20:57:27
Author local date 2014-04-25 20:57:27 +0000
Committer Johnny C. Lam <jlam88@gmail.com>
Committer date 2014-04-25 20:57:27
Committer local date 2014-04-25 20:57:27 +0000
Commit dd54350ac8d9a9b421bcd140a5e9d6bd047fcac2
Tree baf54dff5c01d5fa65f3d0011409530f4d314cbe
Parent a11860f348269419625916647d36f6a8e1d7534e
Factor in power regen time for spell "readiness".

- Add a new state method TimeToPower() for the number of seconds before
  the given resource required is available for a spell.

- If the time to pool resources is longer than the time needed for a spell
  to come off cooldown, then add that additional time to the spell's
  cooldown duration.

These changes allow for "wait Spell(mangle_cat)" to have a time span for
the energy pooling.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1332 d5049fe3-3747-40f7-a4b5-f36d6801af5f