From 6d43e5b20200ba32010f75ca87a8898c41aedca3 Mon Sep 17 00:00:00 2001 From: murilo09 <78226931+murilo09@users.noreply.github.com> Date: Thu, 25 Aug 2022 07:45:34 -0300 Subject: [PATCH] Fix inquisition bless price (#764) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Function getInquisitionPrice counting only normal blessings --- data/modules/scripts/blessings/blessings.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/data/modules/scripts/blessings/blessings.lua b/data/modules/scripts/blessings/blessings.lua index a7a571cd9..2d1cdfc41 100644 --- a/data/modules/scripts/blessings/blessings.lua +++ b/data/modules/scripts/blessings/blessings.lua @@ -34,7 +34,6 @@ dofile('data/modules/scripts/blessings/assets.lua') -- -- Table structure `blessings_history` -- - CREATE TABLE IF NOT EXISTS `blessings_history` ( `id` int(11) NOT NULL, `player_id` int(11) NOT NULL, @@ -43,7 +42,6 @@ CREATE TABLE IF NOT EXISTS `blessings_history` ( `timestamp` int(11) NOT NULL, CONSTRAINT `blessings_history_pk` PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; - --]=====] Blessings.DebugPrint = function(content, pre, pos) @@ -248,7 +246,7 @@ Blessings.getInquisitionPrice = function(player) -- Find how many missing bless we have and give out the price inquifilter = function(b) return b.inquisition end donthavefilter = function(p, b) return not p:hasBlessing(b) end - local missing = #player:getBlessings(filter, donthavefilter) + local missing = #player:getBlessings(inquifilter, donthavefilter) local totalBlessPrice = Blessings.getBlessingsCost(player:getLevel()) * missing * Blessings.Config.InquisitonBlessPriceMultiplier return missing, totalBlessPrice end