From 43b7394707cd96ffd0eb64b98a59dd279674c10d Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Sun, 6 Apr 2014 18:46:57 +0000 Subject: [PATCH] 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 --- conditions/Ticks.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 1.7.9.5