From e577d3ed0f88bbce3dd6ea9f5e444a3740a50d7f Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Tue, 26 Nov 2013 14:03:56 +0000 Subject: [PATCH] Rename UpdateFromSpellcast() to UpdateSnapshotFromSpellcast() for clarity. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1199 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- OvaleAura.lua | 6 +++--- OvaleFuture.lua | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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 -- 1.7.9.5