From 5c61b6f8131891fe9e37c64361e0fccb9689a75d Mon Sep 17 00:00:00 2001 From: Sidoine De Wispelaere Date: Sun, 6 Dec 2009 16:34:39 +0000 Subject: [PATCH] bug fix when recount is not there git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@160 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- Locale-enUS.lua | 2 +- Ovale.lua | 8 +++++--- Ovale.toc | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Locale-enUS.lua b/Locale-enUS.lua index 5ce7c41..34e2c5d 100644 --- a/Locale-enUS.lua +++ b/Locale-enUS.lua @@ -31,7 +31,7 @@ L["Cacher bouton vide"] = "Hide empty buttons" L["Cacher si cible amicale ou morte"] = "Hide if friendly or dead target" L["main"] = "Main Attack" L["offgcd"] = "Out of global cooldown ability.\nCast alongside your Main Attack." -L["cd"] = "Long cooldown abilities.\nCast as soon as possible or keep for multiplied damagage phases." +L["cd"] = "Long cooldown abilities.\nCast as soon as possible or keep for multiplied damage phases." L["aoe"] = "Multiple targets Attack" L["mana"] = "Mana gain" L["Cliquer pour afficher/cacher les options"] = "Click to hide/show options" diff --git a/Ovale.lua b/Ovale.lua index feb0958..8bd4ffc 100644 --- a/Ovale.lua +++ b/Ovale.lua @@ -549,9 +549,11 @@ function Ovale:CHAT_MSG_ADDON(event, prefix, msg, type, author) if prefix ~= "Ovale" then return end if type ~= "RAID" and type~= "PARTY" then return end - local value, max = strsplit(";", msg) - Recount:AddAmount(author, "Ovale", value) - Recount:AddAmount(author, "OvaleMax", max) + if Recount then + local value, max = strsplit(";", msg) + Recount:AddAmount(author, "Ovale", value) + Recount:AddAmount(author, "OvaleMax", max) + end end function Ovale:PLAYER_REGEN_ENABLED() diff --git a/Ovale.toc b/Ovale.toc index c68b6e0..72c9c55 100644 --- a/Ovale.toc +++ b/Ovale.toc @@ -3,7 +3,7 @@ ## Notes: Show the icon of the next spell to cast ## Notes-frFR: Affiche l'icône du prochain sort à lancer ## Author: Sidoine -## Version: 3.2.25 +## Version: 3.2.26 ## OptionalDeps: Ace3, ButtonFacade, Recount ## SavedVariables: OvaleDB ## SavedVariablesPerCharacter: OvaleDBPC -- 1.7.9.5