Code consistency.
Johnny C. Lam [03-29-13 - 06:50]
Code consistency.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@860 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleData.lua b/OvaleData.lua
index c34fd97..81c9b85 100644
--- a/OvaleData.lua
+++ b/OvaleData.lua
@@ -594,11 +594,11 @@ function OvaleData:GetDuration(spellId, combo, holy)
duration = duration + si.adddurationholy * (holy - 1)
end
if si.tick then -- DoT
- --DoT duration is tickLength * numberOfTicks.
- local tickLength = self:GetTickLength(spellId)
- local numTicks = floor(duration / tickLength + 0.5)
- duration = tickLength * numTicks
- return duration, tickLength, numTicks
+ --DoT duration is tick * numberOfTicks.
+ local tick = self:GetTickLength(spellId)
+ local numTicks = floor(duration / tick + 0.5)
+ duration = tick * numTicks
+ return duration, tick, numTicks
end
return duration
else