hxp
2022-08-17 b7159ca5db25404f507a27a43a970a0ca5fdf5bf
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