Added TargetIsFriend
Sidoine De Wispelaere [12-05-10 - 15:23]
Added TargetIsFriend
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@338 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/Condition.lua b/Condition.lua
index a77cc59..90e5785 100644
--- a/Condition.lua
+++ b/Condition.lua
@@ -774,6 +774,9 @@ Ovale.conditions=
return testbool(UnitCastingInfo(target)==spellName or UnitChannelInfo(target) == spellName, condition[1])
end
end,
+ TargetIsFriend = function(condition)
+ return testbool(UnitIsFriend("player", getTarget(condition.target)), condition[1])
+ end,
TargetIsInterruptible = function(condition)
local target = getTarget(condition.target)
local spell, rank, name, icon, start, ending, isTradeSkill, castID, protected = UnitCastingInfo(target)