From 24b5ae2f1f541f4dfc9f920d1084d6e53998ca38 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 29 五月 2024 21:49:18 +0800
Subject: [PATCH] 10170 【越南】【主干】【港台】终身卡(快速完成任务仅任务类型7跟12需要扣钱)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py
index 877ff44..c19c61c 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py
@@ -4986,9 +4986,11 @@
         EventRespons_OnQuickFinishAllAround(curPlayer, missionID)
         return
     
+    curQuestData = QuestManager.FindQuest(missionID)  
     isFree = PlayerGoldInvest.CanQuickFinishMissionFree(curPlayer)
     costMoneyInfo = IpyGameDataPY.GetFuncEvalCfg("QuickFinishMission", 1)
-    if costMoneyInfo and not isFree:
+    if costMoneyInfo and not isFree and \
+        curQuestData != None and curQuestData.Type in QuestCommon.Def_RunTask_Type_List:
         moneyType, moneyValue = costMoneyInfo
         if not PlayerControl.PayMoney(curPlayer, moneyType, moneyValue, ChConfig.Def_Cost_MissionDel, {"MissionID":missionID}):
             return

--
Gitblit v1.8.0