Quantcast

Print the total number of spells in the spellbook.

Johnny C. Lam [12-05-13 - 08:18]
Print the total number of spells in the spellbook.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1230 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleSpellBook.lua
diff --git a/OvaleSpellBook.lua b/OvaleSpellBook.lua
index 2aa0866..5ff5f7c 100644
--- a/OvaleSpellBook.lua
+++ b/OvaleSpellBook.lua
@@ -245,6 +245,11 @@ end
 -- Print out the list of known spells in alphabetical order.
 function OvaleSpellBook:DebugSpells()
 	PrintTableValues(self_spell)
+	local total = 0
+	for _ in pairs(self_spell) do
+		total = total + 1
+	end
+	Ovale:FormatPrint("Total spells: %d", total)
 end

 -- Print out the list of talents in alphabetical order.