hch
2025-10-30 dc7922d80c1d133b6261b8af1d521567d2c0a35d
Main/System/Team/TeamBase.cs
@@ -40,8 +40,13 @@
    }
    //  这边来的可以没有队伍类型
    public TeamBase(HB424_tagSCTurnFightInit.tagSCTurnFightLineup lineUp)
    public TeamBase(HB424_tagSCTurnFightInit.tagSCTurnFightLineup lineUp, bool isBoss = false)
    {
        if (isBoss)
        {
            tempHeroes = new TeamHero[TeamConst.MaxTeamSlotCount];
            serverHeroes = new TeamHero[TeamConst.MaxTeamSlotCount];
        }
        teamIndex = lineUp.Num;
        playerId = lineUp.OwnerID;
        ShapeType = lineUp.ShapeType;
@@ -345,6 +350,7 @@
    }
    
    //checkLock :是否验证上阵人数限制
    //targetPosition 从0开始
    public void AddHero(HeroInfo heroInfo, int targetPosition, bool checkLock)
    {
        if (targetPosition < 0 || targetPosition >= tempHeroes.Length)