~ruther/NosSmooth

b379d58ea37e8b775e751ee5457497f71c59ec5e — Rutherther 2 years ago 7f17250
fix(combat): prevent using combo skills until support is added
1 files changed, 5 insertions(+), 3 deletions(-)

M Extensions/NosSmooth.Extensions.Combat/Techniques/SimpleAttackTechnique.cs
M Extensions/NosSmooth.Extensions.Combat/Techniques/SimpleAttackTechnique.cs => Extensions/NosSmooth.Extensions.Combat/Techniques/SimpleAttackTechnique.cs +5 -3
@@ 15,6 15,7 @@ using NosSmooth.Game.Apis.Safe;
using NosSmooth.Game.Data.Characters;
using NosSmooth.Game.Data.Entities;
using NosSmooth.Game.Data.Inventory;
using NosSmooth.Game.Extensions;
using Remora.Results;

namespace NosSmooth.Extensions.Combat.Techniques;


@@ 129,9 130,10 @@ public class SimpleAttackTechnique : ICombatTechnique
            .Where
            (
                x => x.Info is not null && x.Info.HitType != HitType.AlliesInZone
                    && x.Info.SkillType == SkillType.Player
            )
            .Where(x => !x.IsOnCooldown && characterMp >= (x.Info?.MpCost ?? long.MaxValue));
                    && x.Info.SkillType == SkillType.Player &&
                    !x.IsOnCooldown && characterMp >= (x.Info?.MpCost ?? long.MaxValue) &&
                    !x.Info!.IsComboSkill()
            );

        var skillResult = _skillSelector.GetSelectedSkill(usableSkills);
        if (!skillResult.IsDefined(out var currentSkill))

Do not follow this link