From ced4b870a7708881fbee76b5b5e06b528de359fd Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 31 十月 2025 15:56:13 +0800
Subject: [PATCH] 125 战斗 子技能收集导致部分包没收集导致的报错修复 (关羽普攻
---
Main/Core/NetworkPackage/CustomServerPack/CustomHB427_tagSCUseSkill.cs | 8 ++++++++
Main/Core/NetworkPackage/CustomServerPack/CustomHB426CombinePack.cs | 12 +++++-------
2 files changed, 13 insertions(+), 7 deletions(-)
diff --git a/Main/Core/NetworkPackage/CustomServerPack/CustomHB426CombinePack.cs b/Main/Core/NetworkPackage/CustomServerPack/CustomHB426CombinePack.cs
index 6261f72..364f3fe 100644
--- a/Main/Core/NetworkPackage/CustomServerPack/CustomHB426CombinePack.cs
+++ b/Main/Core/NetworkPackage/CustomServerPack/CustomHB426CombinePack.cs
@@ -1,4 +1,3 @@
-
using System.Collections.Generic;
using UnityEngine;
@@ -50,7 +49,8 @@
public void PrintAllPack()
{
- string temp = "CustomHB426CombinePack startTag: " + (startTag != null ? startTag.Tag : "null") + " fromIndex: " + fromIndex + " toIndex: " + toIndex + "\n";
+ string temp = "CustomHB426CombinePack startTag: " + (startTag != null ? startTag.Tag : "null") +
+ " fromIndex: " + fromIndex + " toIndex: " + toIndex + " packList.Count: " + packList.Count + "\n";
for (int i = 0; i < packList.Count; i++)
{
var pack = packList[i];
@@ -63,7 +63,7 @@
temp += " pack type is " + pack.GetType().Name + "\n";
}
}
- // BattleDebug.LogError(temp);
+ BattleDebug.LogError(temp);
}
public void AddPack(GameNetPackBasic pack)
@@ -148,10 +148,8 @@
parentSkill.subSkillList.Add(skillPack);
skillPack.parentSkill = parentSkill;
}
- else
- {
- indexDict.Add(i, pack);
- }
+ indexDict.Add(i, pack);
+
}
else
{
diff --git a/Main/Core/NetworkPackage/CustomServerPack/CustomHB427_tagSCUseSkill.cs b/Main/Core/NetworkPackage/CustomServerPack/CustomHB427_tagSCUseSkill.cs
index 003511c..a0aa287 100644
--- a/Main/Core/NetworkPackage/CustomServerPack/CustomHB427_tagSCUseSkill.cs
+++ b/Main/Core/NetworkPackage/CustomServerPack/CustomHB427_tagSCUseSkill.cs
@@ -21,4 +21,12 @@
get;
set;
} = null;
+
+ public bool isSubSkill
+ {
+ get
+ {
+ return parentSkill != null;
+ }
+ }
}
\ No newline at end of file
--
Gitblit v1.8.0