Remove support for CanStopChannelling(...) statement.
Johnny C. Lam [04-21-14 - 05:03]
Remove support for CanStopChannelling(...) statement.
The syntax for it no longer matches the canStopChannelling parameter
of SpellInfo(...).
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1311 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/OvaleCompile.lua b/OvaleCompile.lua
index 912986a..6512181 100644
--- a/OvaleCompile.lua
+++ b/OvaleCompile.lua
@@ -685,17 +685,6 @@ local function ParseAddIcon(params, text, secure)
end
end
-local function ParseCanStopChannelling(text)
- local spellId = tonumber(text)
- if spellId then
- local si = OvaleData:SpellInfo(spellId)
- si.canStopChannelling = true
- else
- Ovale:FormatPrint("CanStopChannelling with unknown spell %s", text)
- end
- return ""
-end
-
local function ParseItemName(text)
local itemId = tonumber(text)
if itemId then
@@ -747,7 +736,6 @@ local function CompileDeclarations(text)
-- Options diverses
OvaleData:ResetSpellInfo()
- text = strgsub(text, "CanStopChannelling%s*%(%s*(%w+)%s*%)", ParseCanStopChannelling)
text = strgsub(text, "SpellAddBuff%s*%((.-)%)", ParseSpellAddBuff)
text = strgsub(text, "SpellAddDebuff%s*%((.-)%)", ParseSpellAddDebuff)
text = strgsub(text, "SpellAddTargetDebuff%s*%((.-)%)", ParseSpellAddTargetDebuff)