~ruther/NosSmooth

f35677ec2ae0a39ac583c8ff48e6e64ee6c4df38 — Rutherther 2 years ago 9c9668e
fix(combat): prevent using passive skills in simple attack technique
1 files changed, 2 insertions(+), 2 deletions(-)

M Extensions/NosSmooth.Extensions.Combat/Techniques/SimpleAttackTechnique.cs
M Extensions/NosSmooth.Extensions.Combat/Techniques/SimpleAttackTechnique.cs => Extensions/NosSmooth.Extensions.Combat/Techniques/SimpleAttackTechnique.cs +2 -2
@@ 124,8 124,8 @@ public class SimpleAttackTechnique : ICombatTechnique
            }

            var characterMp = character.Mp?.Amount ?? 0;
            var usableSkills = skills.OtherSkills
                .Where(x => x.Info is not null && x.Info.HitType != HitType.AlliesInZone)
            var usableSkills = skills.AllSkills
                .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));

            var skillResult = _skillSelector.GetSelectedSkill(usableSkills);

Do not follow this link