From 12ddd56131d5a61232ae3ed1333caeb301d67d26 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 02 十一月 2021 19:15:59 +0800
Subject: [PATCH] 9300 【BT5】【主干】【后端】新增:法器进阶(支持自动购买限购物品)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFaQi.py |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFaQi.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFaQi.py
index 79a9eba..4512d92 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFaQi.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerFaQi.py
@@ -20,6 +20,7 @@
 import IPY_GameWorld
 import PlayerControl
 import ChPyNetSendPack
+import FunctionNPCCommon
 import NetPackCommon
 import IpyGameDataPY
 import ItemCommon
@@ -85,11 +86,8 @@
     delCnt = costItemCount
     if lackCnt > 0:
         autoBuyMoneyType = IPY_GameWorld.TYPE_Price_Gold_Money
-        lackCost = ItemCommon.GetAutoBuyItemNeedGold({costItemID:lackCnt}, autoBuyMoneyType)
-        if lackCost <= 0:
-            return
         infoDict = {ChConfig.Def_Cost_Reason_SonKey:costItemID}
-        if not PlayerControl.PayMoney(curPlayer, autoBuyMoneyType, lackCost, ChConfig.Def_Cost_FaQi, infoDict):
+        if not FunctionNPCCommon.PayAutoBuyItem(curPlayer, {costItemID:lackCnt}, autoBuyMoneyType, ChConfig.Def_Cost_FaQi, infoDict):
             return
         delCnt -= lackCnt
         

--
Gitblit v1.8.0