From d667b87548ada177a367a34620fea87732c78eeb Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Thu, 5 Dec 2013 08:18:32 +0000 Subject: [PATCH] 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 --- OvaleSpellBook.lua | 5 +++++ 1 file changed, 5 insertions(+) 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. -- 1.7.9.5