fBaseXtensions.Game.Hero.Skills.Skill.CreateSkillLogicConditions C# (CSharp) Method

CreateSkillLogicConditions() public static method

public static CreateSkillLogicConditions ( Skill &ability ) : void
ability Skill
return void
        public static void CreateSkillLogicConditions(ref Skill ability)
        {
            //CreatePreCastConditions(ref ability.FcriteriaPreCast, ability);
            CreateTargetConditions(ref ability);
            CreateClusterConditions(ref ability);

            //Check if the 4 primary combat conditions are null -- and if the custom condition is not..
            if (ability.SingleUnitCondition.Count == 0 && ability.ClusterConditions.Count == 0 && ability.FcriteriaCombat != null)
                ability.TestCustomCombatConditions = true;
        }