Quantcast

maxMana and maxLife were bugged #112

Sidoine De Wispelaere [12-17-11 - 12:36]
maxMana and maxLife were bugged #112

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@448 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
Condition.lua
diff --git a/Condition.lua b/Condition.lua
index bb64213..572abd0 100644
--- a/Condition.lua
+++ b/Condition.lua
@@ -865,10 +865,10 @@ Ovale.conditions=
 		return compare(UnitMaxHealth(target), condition[1], condition[2])
 	end,
 	maxHealth = function(condition)
-		return UnitMaxHealth(getTarget(condition.target))
+		return UnitMaxHealth(getTarget(condition.target)), 0, 0
 	end,
 	maxMana = function(condition)
-		return UnitPowerMax(getTarget(condition.target))
+		return UnitPowerMax(getTarget(condition.target)), 0, 0
 	end,
 	NextSwing = function(condition)
 		local ret = OvaleSwing:GetNext(condition[1])