Commit 18a3955beeb126f49bd6dab2fe5df906eeeda615

Authored by zhangqijia
1 parent 3a262daf

fix: 修复 魔导师兑换虹光玉兑换招募券的过程中,未消耗虹光玉。

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
src/actions/RoleAction.lua
@@ -1552,6 +1552,7 @@ function _M.diamondConvertRpc(agent, data) @@ -1552,6 +1552,7 @@ function _M.diamondConvertRpc(agent, data)
1552 local allReward = {} 1552 local allReward = {}
1553 if remain > old then 1553 if remain > old then
1554 allReward[ItemId.Jade] = remain - old 1554 allReward[ItemId.Jade] = remain - old
  1555 + role:checkWorldChangePoints({[ItemWorldLine.CostJade]= quan * globalCsv.recruit_cost})
1555 elseif remain == old then 1556 elseif remain == old then
1556 else 1557 else
1557 role:costItems({[ItemId.Jade] = old - remain}, {log = {desc = "convert", short1=oper}}) 1558 role:costItems({[ItemId.Jade] = old - remain}, {log = {desc = "convert", short1=oper}})