hch
8 天以前 eb27e5fd31f73b998a4bbd85511a31e40b8c61b7
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();
        }
    }
    // 技能运行主逻辑:处理技能效果和其他技能动作