Quantcast

Initialize a variable in a more clearly-documented way.

Johnny C. Lam [04-18-13 - 23:43]
Initialize a variable in a more clearly-documented way.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@905 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleCondition.lua
diff --git a/OvaleCondition.lua b/OvaleCondition.lua
index 9dcfe27..67ea46d 100644
--- a/OvaleCondition.lua
+++ b/OvaleCondition.lua
@@ -467,7 +467,12 @@ end

 OvaleCondition.conditions = {}
 -- List of script conditions that refer to a castable spell from the player's spellbook.
-OvaleCondition.spellbookConditions = { spell = true }
+OvaleCondition.spellbookConditions = {}
+
+do
+	-- Spell(spellId) can be used as a condition instead of an action.
+	OvaleCondition.spellbookConditions.spell = true
+end

 	-- Test if a white hit just occured
 	-- 1 : maximum time after a white hit