Browse Source

机器人技能数

zhaoyang 2 years ago
parent
commit
7259aeda78
1 changed files with 5 additions and 1 deletions
  1. 5 1
      GameClient/Assets/Game/HotUpdate/ServerProxy/ArenaSproxy.cs

+ 5 - 1
GameClient/Assets/Game/HotUpdate/ServerProxy/ArenaSproxy.cs

@@ -433,7 +433,11 @@ namespace GFGGame
             fightData.res = string.IsNullOrEmpty(robotProto.RobotHead) ? "self" : robotProto.RobotHead;
             double cardScore = (double)robotCfg.cardScore * randoms;
             fightData.cardScore = (int)Math.Ceiling(cardScore);
-            fightData.skillLvs.Add(robotCfg.skillLvs);
+            List<PassivitySkillCfg> skillCfgs = PassivitySkillCfgArray.Instance.GetCfgsBycardId(fightData.cardId);
+            for (int i = 0; i < skillCfgs.Count; i++)
+            {
+                fightData.skillLvs.Add(robotCfg.skillLvs);
+            }
             fightData.showSuitId = robotProto.SuitList.Count <= index ? 0 : robotProto.SuitList[index];//上赛季没有穿戴数据
 
             return fightData;