Quantcast

Refactor OvaleEclipse:ApplySpellAfterCast() into smaller functions.

Author Johnny C. Lam <jlam88@gmail.com>
Author date 2014-05-27 18:27:37
Author local date 2014-05-27 18:27:37 +0000
Committer Johnny C. Lam <jlam88@gmail.com>
Committer date 2014-05-27 18:27:37
Committer local date 2014-05-27 18:27:37 +0000
Commit 352a85fe39a17642dcb9314765a3460c8f69b027
Tree 6433d4f20bd4b2a571961c5d9f080e95f063e95f
Parent 85fdffad70c41332fcb2c5eaf23b8ad62fda097a
Refactor OvaleEclipse:ApplySpellAfterCast() into smaller functions.

Add state methods:

    EclipseEnergy() returns the eclipse energy generated by a spell.
    ApplyEclipseEnergy() updates the eclipse state.
    AddEclipse() and RemoveEclipse() for managing Eclipse state effects.

Also properly handle Celestial Alignment, which zeroed the eclipse energy
but also granted the spell effects of both Lunar and Solar Eclipse.

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