From ad76af64d0e2ab68d62ac4fd1ab66f3816d7b5a0 Mon Sep 17 00:00:00 2001 From: chenyueqi Date: Sat, 30 Jan 2021 16:22:03 +0800 Subject: [PATCH] 修复 如果当前持有大于最大携带,自动补给药剂功能会清除药剂背包所有 --- src/adv/Adv.lua | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/src/adv/Adv.lua b/src/adv/Adv.lua index 84623e8..1d34113 100644 --- a/src/adv/Adv.lua +++ b/src/adv/Adv.lua @@ -1194,6 +1194,7 @@ function Adv:supplyPotion() if need < count then advItems = advItems:setv(potionId,max) potionBag[potionId] = count - need + elseif need < 0 then else advItems = advItems:setv(potionId,old + count) potionBag[potionId] = nil -- libgit2 0.21.2