hxp
2023-01-12 921b9a471b986fb148b8260d80ca23b9b25d42b4
ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerTeam.py
@@ -1558,14 +1558,17 @@
    return (teamLV == IPY_GameServer.tmlMemberCanCall or 
             teamLV == IPY_GameServer.tmlLeader)
    
def CheckTeamOnLineCount(curTeam):
def CheckTeamOnLineCount(curTeam, includeTJG=True):
    ##获得队伍剩余在线人数
    if not curTeam:
        return 0
    count = 0
    for i in xrange(curTeam.GetMemberCount()):
        curPlayer = curTeam.GetMemberPlayer(i)
        if curPlayer == None:
            continue
        if not includeTJG and PlayerControl.GetIsTJG(curPlayer):
            continue
        count += 1
    return count