Quantcast

bug fix for TargetDeadIn()

Sidoine De Wispelaere [10-15-09 - 21:59]
bug fix for TargetDeadIn()

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@123 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
Condition.lua
Ovale.toc
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