Main/System/Battle/Skill/SkillBase.cs
@@ -51,6 +51,26 @@ tagUseSkillAttack = vNetData; battleField = _battleField; packList = _packList; SafetyCheck(); } private void SafetyCheck() { bool safety = caster != null && skillConfig != null && tagUseSkillAttack != null && battleField != null && caster.IsDead() == false; if (!safety) { Debug.LogError("SkillBase SafetyCheck failed! Caster or SkillConfig or TagUseSkillAttack or BattleField is null, or Caster is dead."); ForceFinished(); } } // 技能运行主逻辑:处理技能效果和其他技能动作