From 526028f11503a24918fcbcdb215a26aeb78a70e4 Mon Sep 17 00:00:00 2001 From: Sidoine De Wispelaere Date: Thu, 15 Oct 2009 21:59:41 +0000 Subject: [PATCH] bug fix for TargetDeadIn() git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@123 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- Condition.lua | 2 +- Ovale.toc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Condition.lua b/Condition.lua index c3e12eb..0f8bf1c 100644 --- a/Condition.lua +++ b/Condition.lua @@ -228,7 +228,7 @@ local function getTargetDead() local mod10 = second % 10 local prevHealth = savedHealth[mod10] savedHealth[mod10] = newHealth - if prevHealth>newHealth then + if prevHealth and prevHealth>newHealth then lastSPD = 10/(prevHealth-newHealth) -- print("dps = " .. (1/lastSPD)) end diff --git a/Ovale.toc b/Ovale.toc index 1fe956a..dfdfd15 100644 --- a/Ovale.toc +++ b/Ovale.toc @@ -3,7 +3,7 @@ ## Notes: Show the icon of the next spell to cast ## Notes-frFR: Affiche l'icône du prochain sort à lancer ## Author: Sidoine -## Version: 3.2.12 +## Version: 3.2.13 ## OptionalDeps: Ace3, ButtonFacade, Recount ## SavedVariables: OvaleDB ## SavedVariablesPerCharacter: OvaleDBPC -- 1.7.9.5