From bd61f5e92fad5dc02f693747fde8fdb86ee01c5c Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 06 十二月 2019 20:46:52 +0800 Subject: [PATCH] 8346 【恺英】【后端】协助系统(初版,可完成协助完整流程,增加新NPC伤血管理,支持协助、支持超过20亿伤害) --- ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerTeam.py | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerTeam.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerTeam.py index 53ff4f7..a511d9f 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerTeam.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerTeam.py @@ -590,6 +590,11 @@ PlayerControl.NotifyCode(curPlayer, "TeamEnterForbid") return False + if PlayerControl.GetAssistTagPlayerID(curPlayer): + #协助中无法执行此操作 + PlayerControl.NotifyCode(curPlayer, "InAssistForbid") + return False + if tagPlayer: tagPlayerID = tagPlayer.GetPlayerID() #检查ID @@ -614,6 +619,11 @@ PlayerControl.NotifyCode(curPlayer, "TeamEnterForbid") return False + if PlayerControl.GetAssistTagPlayerID(tagPlayer): + #对方协助中,无法执行此操作 + PlayerControl.NotifyCode(curPlayer, "TagInAssistForbid") + return False + return True #=============================================================================== -- Gitblit v1.8.0