//
// SkillInfoExtensions.cs
//
// Copyright (c) František Boháček. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using NosSmooth.Data.Abstractions.Infos;
namespace NosSmooth.Game.Extensions;
///
/// Extension methods for .
///
public static class SkillInfoExtensions
{
///
/// Check whether the given skill is a combo skill.
///
/// The info about the skill.
/// The morph to validate matches the morph of the skill.
/// Whether the skill is a combo skill.
public static bool IsComboSkill(this ISkillInfo skillInfo, int? morph = default)
=> skillInfo.SpecialCost == 999 && skillInfo.CastId > 10 && (morph is null || skillInfo.MorphOrUpgrade == morph.Value);
}