yyl
2026-01-29 83ff2cfc367d3227449fa8414a25541374929ecb
Main/System/Battle/BattleField/BattleField.cs
@@ -588,7 +588,7 @@
    public RectTransform GetTeamNode(BattleCamp battleCamp, BattleObject target)
    {
        int index = target.teamHero.positionNum;
        int index = target.GetPositionNum();
        return GetTeamNode(battleCamp, index);
    }
@@ -600,7 +600,13 @@
    public RectTransform GetTeamNode(BattleCamp battleCamp, int index)
    {
        if (index < 0 || index >= battleRootNode.redTeamNodeList.Count)
        if (index == 99)
        {
            return battleCamp == BattleCamp.Red ? battleRootNode.redTeamNodeList[0].transform as RectTransform
                : battleRootNode.blueTeamNodeList[0].transform as RectTransform;
        }
        if (index < 0 || index >= battleRootNode.redTeamNodeList.Count )
        {
            Debug.LogError($"GetTeamNode: Index {index} is out of range for {battleCamp} camp.");
            return null;
@@ -799,7 +805,11 @@
        BattleObject battleObj = battleObjMgr.GetBattleObject((int)vNetData.ObjID);
        if (null != battleObj)
        {
            battleObj.buffMgr.RefreshBuff(vNetData);
            var buffMgr = battleObj.GetBuffMgr();
            if (buffMgr != null) // 命格不有 buff 管理器
            {
                buffMgr.RefreshBuff(vNetData);
            }
        }
    }
@@ -826,7 +836,11 @@
        BattleObject battleObj = battleObjMgr.GetBattleObject((int)vNetData.ObjID);
        if (null != battleObj)
        {
            battleObj.buffMgr.RemoveBuff(vNetData);
            var buffMgr = battleObj.GetBuffMgr();
            if (buffMgr != null) // 命格不有 buff 管理器
            {
                buffMgr.RemoveBuff(vNetData);
            }
        }
    }