Quantcast

sorry :(

Sidoine De Wispelaere [01-02-10 - 12:36]
sorry :(

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@184 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
Ovale.lua
Ovale.toc
diff --git a/Ovale.lua b/Ovale.lua
index 633362f..3aef017 100644
--- a/Ovale.lua
+++ b/Ovale.lua
@@ -1321,7 +1321,7 @@ function Ovale:CalculerMeilleureAction(element)
 		elseif element.comparison == "at most" and tempsA and tempsA<=element.time then
 			if Ovale.trace then Ovale:Print(element.type.." return 0") end
 			return 0
-		elseif element.comparison == "at least" and tempsA and tempsA>=element.time then
+		elseif element.comparison == "at least" and (not tempsA or tempsA>=element.time) then
 			if Ovale.trace then Ovale:Print(element.type.." return 0") end
 			return 0
 		end
diff --git a/Ovale.toc b/Ovale.toc
index f753594..7b0c8af 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.3.9
+## Version: 3.3.10
 ## OptionalDeps: Ace3, ButtonFacade, Recount, LibBabble-CreatureType-3.0
 ## SavedVariables: OvaleDB
 ## SavedVariablesPerCharacter: OvaleDBPC