From f35677ec2ae0a39ac583c8ff48e6e64ee6c4df38 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Fri, 20 Jan 2023 11:03:16 +0100 Subject: [PATCH] fix(combat): prevent using passive skills in simple attack technique --- .../Techniques/SimpleAttackTechnique.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Extensions/NosSmooth.Extensions.Combat/Techniques/SimpleAttackTechnique.cs b/Extensions/NosSmooth.Extensions.Combat/Techniques/SimpleAttackTechnique.cs index 22c39cf..6cf30e4 100644 --- a/Extensions/NosSmooth.Extensions.Combat/Techniques/SimpleAttackTechnique.cs +++ b/Extensions/NosSmooth.Extensions.Combat/Techniques/SimpleAttackTechnique.cs @@ -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); -- 2.49.0