Commit ad76af64d0e2ab68d62ac4fd1ab66f3816d7b5a0

Authored by chenyueqi
1 parent be2bc68b

修复 如果当前持有大于最大携带,自动补给药剂功能会清除药剂背包所有

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
src/adv/Adv.lua
... ... @@ -1194,6 +1194,7 @@ function Adv:supplyPotion()
1194 1194 if need < count then
1195 1195 advItems = advItems:setv(potionId,max)
1196 1196 potionBag[potionId] = count - need
  1197 + elseif need < 0 then
1197 1198 else
1198 1199 advItems = advItems:setv(potionId,old + count)
1199 1200 potionBag[potionId] = nil
... ...