Quantcast

Rename UpdateFromSpellcast() to UpdateSnapshotFromSpellcast() for clarity.

Johnny C. Lam [11-26-13 - 14:03]
Rename UpdateFromSpellcast() to UpdateSnapshotFromSpellcast() for clarity.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1199 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleAura.lua
OvaleFuture.lua
diff --git a/OvaleAura.lua b/OvaleAura.lua
index 52a5196..906fcda 100644
--- a/OvaleAura.lua
+++ b/OvaleAura.lua
@@ -162,7 +162,7 @@ local function UnitGainedAura(guid, spellId, filter, casterGUID, icon, count, de
 					Ovale:DebugPrintf(OVALE_AURA_DEBUG, "    Snapshot stats for %s %s (%s) on %s from %f, now=%f, aura.serial=%d",
 						filter, name, spellId, guid, lastSpellcast.snapshotTime, now, aura.serial)
 					-- TODO: damageMultiplier isn't correct if lastSpellId spreads the DoT.
-					OvaleFuture:UpdateFromSpellcast(aura, lastSpellcast)
+					OvaleFuture:UpdateSnapshotFromSpellcast(aura, lastSpellcast)
 				end
 			end
 		end
@@ -719,7 +719,7 @@ do
 							newAura.ending = (ending - tick * remainingTicks) + duration
 							newAura.tick = OvaleAura:GetTickLength(auraId)
 							-- Re-snapshot stats for the DoT.
-							OvaleFuture:UpdateFromSpellcast(newAura, spellcast)
+							OvaleFuture:UpdateSnapshotFromSpellcast(newAura, spellcast)
 						else
 							newAura.ending = atTime + duration
 						end
@@ -743,7 +743,7 @@ do
 					if isDoT then
 						newAura.tick = OvaleAura:GetTickLength(auraId)
 						-- Snapshot stats for the DoT.
-						OvaleFuture:UpdateFromSpellcast(newAura, spellcast)
+						OvaleFuture:UpdateSnapshotFromSpellcast(newAura, spellcast)
 					end
 				end
 			end
diff --git a/OvaleFuture.lua b/OvaleFuture.lua
index f66edab..aa67223 100644
--- a/OvaleFuture.lua
+++ b/OvaleFuture.lua
@@ -505,7 +505,7 @@ function OvaleFuture:ApplyInFlightSpells()
 	end
 end

-function OvaleFuture:UpdateFromSpellcast(dest, spellcast)
+function OvaleFuture:UpdateSnapshotFromSpellcast(dest, spellcast)
 	if dest.snapshot then
 		dest.snapshot:ReleaseReference()
 	end