Quantcast

added CreatureFamily function

Sidoine De Wispelaere [03-04-11 - 20:57]
added CreatureFamily function

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@358 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
Condition.lua
diff --git a/Condition.lua b/Condition.lua
index 1217f0c..f890154 100644
--- a/Condition.lua
+++ b/Condition.lua
@@ -488,6 +488,9 @@ Ovale.conditions=
 	Counter = function(condition)
 		return compare(Ovale.counter[condition[1]], condition[2], condition[3])
 	end,
+	CreatureFamily = function(condition)
+		return testbool(UnitCreatureFamily(getTarget(condition.target)) == LBCT[condition[1]], condition[2])
+	end,
 	CreatureType = function(condition)
 		for _,v in pairs(condition) do
 			if (UnitCreatureType(getTarget(condition.target)) == LBCT[v]) then