Quantcast

Clarify how OvaleCondition.defaultTarget is used within Ovale.

Johnny C. Lam [07-20-13 - 08:45]
Clarify how OvaleCondition.defaultTarget is used within Ovale.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@983 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleCondition.lua
diff --git a/OvaleCondition.lua b/OvaleCondition.lua
index b11c796..1367172 100644
--- a/OvaleCondition.lua
+++ b/OvaleCondition.lua
@@ -459,6 +459,12 @@ end
 --</private-static-methods>

 --<public-static-properties>
+
+-- The actual target referenced when the "target" parameter is used in a condition.
+-- This is to support setting a different target in an AddIcon "target" parameter,
+-- e.g., target=focus, while re-using the same script.
+OvaleCondition.defaultTarget = "target"
+
 --[[----------------------------------------------------------------------------
 	Script conditions.

@@ -3500,7 +3506,4 @@ OvaleCondition.conditions.weapondamage = function(condition)
 	end
 	return 0, nil, damage, 0, 0
 end
-
-OvaleCondition.defaultTarget = "target"
-
 --</public-static-properties>