Quantcast

Teach OvaleCooldown about spell charges.

Author Johnny C. Lam <jlam88@gmail.com>
Author date 2014-05-11 08:10:29
Author local date 2014-05-11 08:10:29 +0000
Committer Johnny C. Lam <jlam88@gmail.com>
Committer date 2014-05-11 08:10:29
Committer local date 2014-05-11 08:10:29 +0000
Commit a486d924c122eb07596badbfb1075b6492aee876
Tree d00053d59c932b2d42614cb54fccb7fcb42d59cf
Parent 52e242ff9d90e2d2c1b99719da3ebef327bbb7f9
Teach OvaleCooldown about spell charges.

Lazily update the cooldown information of spells based on the age of the
cooldown state, which is flagged to be updated when a spell's charges or
cooldowns is changed or if a spell is successfully cast.

Add a GetSpellCharges() method to the state machine to act like the
Blizzard API function of the same name.

Fixes ticket 357.

Age cooldown state properly.

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