Quantcast

Snapshot player stats when a spell is cast and when DoTs are applied.

Author Johnny C. Lam <jlam88@gmail.com>
Author date 2013-07-07 04:43:08
Author local date 2013-07-07 04:43:08 +0000
Committer Johnny C. Lam <jlam88@gmail.com>
Committer date 2013-07-07 04:43:08
Committer local date 2013-07-07 04:43:08 +0000
Commit d80860eeb8df8cdb3cacbf4a30a025192a257425
Tree 8515ba068e09e759363c1bad743ef0ec53f6a495
Parent cc1302ecec48b043554b94c56b8ec12547760e0a
Snapshot player stats when a spell is cast and when DoTs are applied.

The most recent successfully landed cast of a spell is saved in a table
indexed by target and spell ID, and contains all of the information for
that spellcast, including cast time and also a snapshot of the player
stats.

Player stats are snapshotted both at the start of a cast and when it is
sent to the server so that OvaleState can approximately know the player's
stats at the end an active spellcast.

Player stats are also snapshotted when a DoT is applied or refreshed.

Introduce a new generalized public method OvaleFuture:GetLastSpellInfo()
that returns information about the last successfully landed spell.  Remove
the following superseded methods:

	GetLastAttackPower
	GetLastComboPoints
	GetLastCritChance
	GetLastDamageMultiplier
	GetLastSpellpower

Change the following conditions to take a target since spellcast
information is also tracked by target:

	LastSpellAttackPower
	LastSpellComboPoints
	LastSpellCritChance
	LastSpellDamageMultiplier
	LastSpellEstimatedDamage
	LastSpellMastery
	LastSpellSpellpower

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