diff --git a/Bast/PotionQuafferv2.xml b/Bast/PotionQuafferv2.xml
index 0dcac3ee..defce1e5 100644
--- a/Bast/PotionQuafferv2.xml
+++ b/Bast/PotionQuafferv2.xml
@@ -102,7 +102,7 @@ To use a heal potion, or mana potion.
enabled="y"
expand_variables="y"
ignore_case="y"
- match="^You buy((\s(.*)\s\*\s)|\sa\s)(?:@healdesc) from (.*) for (\d+) gold.$"
+ match="^You buy (\d*) \* @healdesc from (.*) for (.*) gold.$"
name="Shop_Heal"
regexp="y"
script="Shop_Heal"
@@ -113,7 +113,18 @@ To use a heal potion, or mana potion.
enabled="y"
expand_variables="y"
ignore_case="y"
- match="^You buy((\s(.*)\s\*\s)|\sa\s)(?:@manadesc) from (.*) for (\d+) gold.$"
+ match="^You buy @healdesc from (.*) for (.*) gold.$"
+ name="Shop_Heal2"
+ regexp="y"
+ script="Shop_Heal"
+ sequence="50"
+ >
+
+
+
+
+
+
cp check
diff --git a/Bast/lua/chardb.lua b/Bast/lua/chardb.lua
index 253f9a21..25260142 100644
--- a/Bast/lua/chardb.lua
+++ b/Bast/lua/chardb.lua
@@ -242,6 +242,11 @@ function Statdb:addtostat(stat, add)
if tonumber(add) == 0 then
return true
end
+ if add == nil then
+ ColourNote("red", "", "Trying to add a nil value to " .. tostring(stat) .. ", please report this to Bast")
+ ColourNote("red", "", "please type 'whois' to reset current stats")
+ return false
+ end
if self:open('addtostat') then
local tstat = nil
for a in self.db:nrows('SELECT * FROM stats WHERE milestone = "current"') do