Use the correct return value from state:GetDuration() for number of ticks.
Johnny C. Lam [04-06-14 - 18:46]
Use the correct return value from state:GetDuration() for number of ticks.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1276 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/conditions/Ticks.lua b/conditions/Ticks.lua
index be62992..cdbbf41 100644
--- a/conditions/Ticks.lua
+++ b/conditions/Ticks.lua
@@ -1,7 +1,7 @@
--[[--------------------------------------------------------------------
Ovale Spell Priority
Copyright (C) 2012, 2013 Sidoine
- Copyright (C) 2012, 2013 Johnny C. Lam
+ Copyright (C) 2012, 2013, 2014 Johnny C. Lam
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License in the LICENSE
@@ -40,7 +40,7 @@ do
numTicks = floor((ending - start) / tick + 0.5)
end
else
- local _, _, _numTicks = state:GetDuration(auraId)
+ local _, _, _, _numTicks = state:GetDuration(auraId)
numTicks = _numTicks
end
if numTicks then