From 9b25b2ff7ed6de7722ec81e77c7181913f991d93 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 29 五月 2024 22:18:50 +0800 Subject: [PATCH] 10170 【越南】【主干】【港台】终身卡(快速完成任务附加验证玩家是否有该任务) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py | 8 +++++--- 1 files changed, 5 insertions(+), 3 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 c19c61c..edd43ef 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventShell.py @@ -4986,11 +4986,13 @@ EventRespons_OnQuickFinishAllAround(curPlayer, missionID) return - curQuestData = QuestManager.FindQuest(missionID) + curQuestData = QuestManager.FindQuest(missionID) + curMission = curPlayer.FindMission(missionID) + if not curQuestData or not curMission: + return isFree = PlayerGoldInvest.CanQuickFinishMissionFree(curPlayer) costMoneyInfo = IpyGameDataPY.GetFuncEvalCfg("QuickFinishMission", 1) - if costMoneyInfo and not isFree and \ - curQuestData != None and curQuestData.Type in QuestCommon.Def_RunTask_Type_List: + if costMoneyInfo and not isFree 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