Kaynağa Gözat

同步代码

mafei 1 yıl önce
ebeveyn
işleme
8a6785bcfe
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      script/module/xianzhi/XianzhiLogic.lua

+ 2 - 2
script/module/xianzhi/XianzhiLogic.lua

@@ -444,8 +444,8 @@ function shopBuy(human,id,count)
 	if cnt < needCnt then 
 	if cnt < needCnt then 
 		return Broadcast.sendErr(human, Util.format(Lang.XIANZHI_NO_ITEM,ItemDefine.getValue(xianzhiOutPutId,"name")))
 		return Broadcast.sendErr(human, Util.format(Lang.XIANZHI_NO_ITEM,ItemDefine.getValue(xianzhiOutPutId,"name")))
 	end
 	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")
 	BagLogic.addItemList(human,{{goodsCfg.goods[1],goodsCfg.goods[2] * count}},"xianzhi_buy")
 	-- 同步客户端最新先知精华数量
 	-- 同步客户端最新先知精华数量
 	local msgRet = Msg.gc.GC_XIANZHI_SHOP_BUY
 	local msgRet = Msg.gc.GC_XIANZHI_SHOP_BUY