From 97cbea04b641f367c24096e69dfe058baf80b150 Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期三, 05 十二月 2018 15:42:59 +0800 Subject: [PATCH] 5242 【后端】【1.3.100】仙盟宴会答题修改为只能在宴会地图内才能答题 --- ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilyParty.py | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilyParty.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilyParty.py index 97c9ab6..1fdf9fb 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilyParty.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerFamilyParty.py @@ -227,11 +227,11 @@ ChContent = GameWorld.CodeToGBK(ChContent) ChContent = ChContent.strip() isRight = ChContent in answerList -# if curPlayer.GetMapID() != ChConfig.Def_FBMapID_FamilyParty: -# if isRight: -# PlayerControl.FamilyNotify(curFamilyid, 'FamilyPleaseIntoParty') -# PlayerControl.NotifyCode(curPlayer, 'FamilyNoIntoParty') -# return + if curPlayer.GetMapID() != ChConfig.Def_FBMapID_FamilyParty: + if isRight: + PlayerControl.FamilyNotify(curFamilyid, 'FamilyPleaseIntoParty') + PlayerControl.NotifyCode(curPlayer, 'FamilyNoIntoParty') + return playerID = curPlayer.GetID() GameWorld.DebugLog(" answer=%s ChContent=%s"%(answerList, ChContent), playerID) -- Gitblit v1.8.0