2805 【BUG】【1.4.100】跨服pk,跨服时间过了还可以购买次数(跨服服务器维护期间 或 非匹配期间无法购买)
1个文件已修改
6 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCrossRealmPK.py 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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)