Fix return value of Chi().
Johnny C. Lam [10-15-13 - 01:24]
Fix return value of Chi().
Chi is a resource like holy power or combo points that doesn't have a rate
of regeneration; instead, it is gained on lost strictly through abilities
(while in combat).
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1047 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleCondition.lua b/OvaleCondition.lua
index be89554..d8bf21a 100644
--- a/OvaleCondition.lua
+++ b/OvaleCondition.lua
@@ -1174,7 +1174,7 @@ end
-- if Chi(more 3) Spell(chi_burst)
OvaleCondition.conditions.chi = function(condition)
- return TestValue(condition[1], condition[2], OvaleState.state.chi, OvaleState.currentTime, OvaleState.powerRate.chi)
+ return Compare(OvaleState.state.chi, condition[1], condition[2])
end
--- Test whether the target's class matches the given class.