|
|
@@ -444,8 +444,8 @@ function shopBuy(human,id,count)
|
|
|
if cnt < needCnt then
|
|
|
return Broadcast.sendErr(human, Util.format(Lang.XIANZHI_NO_ITEM,ItemDefine.getValue(xianzhiOutPutId,"name")))
|
|
|
end
|
|
|
- -- 先扣款 再发道具,delItem代码问题 nosend为true时发送
|
|
|
- BagLogic.delItem(human,xianzhiOutPutId,needCnt,"xianzhi_buy",true)
|
|
|
+ -- 先扣款 再发道具
|
|
|
+ BagLogic.delItem(human,xianzhiOutPutId,needCnt,"xianzhi_buy")
|
|
|
BagLogic.addItemList(human,{{goodsCfg.goods[1],goodsCfg.goods[2] * count}},"xianzhi_buy")
|
|
|
-- 同步客户端最新先知精华数量
|
|
|
local msgRet = Msg.gc.GC_XIANZHI_SHOP_BUY
|