Fix ticket 287 - IsFriend() doesn't work correctly
Johnny C. Lam [09-28-13 - 12:49]
Fix ticket 287 - IsFriend() doesn't work correctly
Fix copy and paste error that was causing the IsFriend() condition to
incorrectly return whether the target was flagged for PvP.
Analysis and fix by @Xeltor.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1037 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleCondition.lua b/OvaleCondition.lua
index b2ed0d8..e0535cd 100644
--- a/OvaleCondition.lua
+++ b/OvaleCondition.lua
@@ -1966,7 +1966,7 @@ end
-- @usage
-- if not target.IsFriend() and target.IsPVP() Spell(sap)
-OvaleCondition.conditions.isfriend = function(condition)
+OvaleCondition.conditions.ispvp = function(condition)
return TestBoolean(API_UnitIsPVP(GetTarget(condition)), condition[1])
end