From 5a0e9d1e66a5a38218a48a756457a355794c5265 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 04 一月 2019 14:41:02 +0800 Subject: [PATCH] 2805 【BUG】【1.4.100】跨服pk,跨服时间过了还可以购买次数(跨服服务器维护期间 或 非匹配期间无法购买) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCrossRealmPK.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCrossRealmPK.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCrossRealmPK.py index 545f7bd..bef72ad 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCrossRealmPK.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCrossRealmPK.py @@ -342,6 +342,12 @@ def OnCrossRealmPKBuy(index, clientData, tick): curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index) playerID = curPlayer.GetPlayerID() + if not CrossRealmPlayer.IsCrossServerOpen(): + PlayerControl.NotifyCode(curPlayer, "CrossMatching18") + return + if not IsCrossRealmPKMatchState(): + GameWorld.DebugLog("跨服匹配未开启,不可进行购买次数!", playerID) + return dayFreeMatchCountMax = IpyGameDataPY.GetFuncCfg("CrossRealmPKMatchCount", 1) if not dayFreeMatchCountMax: GameWorld.DebugLog("每日匹配次数没有限制,不需要购买次数!", playerID) -- Gitblit v1.8.0