Document legacy parameter "mine" for aura scripts conditions.
Johnny C. Lam [11-15-13 - 19:55]
Document legacy parameter "mine" for aura scripts conditions.
Scripts should be using the "any" parameter instead since aura conditions
already assume the aura to check belongs to the player by default.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1161 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleCondition.lua b/OvaleCondition.lua
index c9d71cb..c5b12ed 100644
--- a/OvaleCondition.lua
+++ b/OvaleCondition.lua
@@ -124,8 +124,11 @@ OvaleCondition.ParseCondition = function(condition, defaultTarget)
local mine = true
if condition.any and condition.any == 1 then
mine = false
- elseif condition.mine and condition.mine ~= 1 then
- mine = false
+ else
+ -- Legacy parameter "mine"; no longer documented.
+ if not condition.any and condition.mine and condition.mine ~= 1 then
+ mine = false
+ end
end
return target, filter, mine