Hide "unknown spell" error behind an "unknown_spells" debug flag.
Johnny C. Lam [11-30-12 - 05:00]
Hide "unknown spell" error behind an "unknown_spells" debug flag.
This error is primarily for script authors to toggle when they verify
their scripts are correct.
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@652 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleCompile.lua b/OvaleCompile.lua
index cbe4ba3..b7657f7 100644
--- a/OvaleCompile.lua
+++ b/OvaleCompile.lua
@@ -206,7 +206,7 @@ local function ParseFunction(prefix, func, params)
unknownSpellNodes[newNode.nodeId] = spellId
end
else
- Ovale:Print("Unknown spell with ID "..spellId)
+ Ovale:debugPrint("unknown_spells", "Unknown spell with ID "..spellId)
end
end
end