不可选中时能给自己放技能

This commit is contained in:
milimoe 2025-06-25 00:04:31 +08:00
parent 88d6d9a8c9
commit 0a1bb0b2a5
Signed by: milimoe
GPG Key ID: 9554D37E4B8991D0

View File

@ -1062,7 +1062,7 @@ namespace Milimoe.FunGame.Core.Model
character.CharacterState = CharacterState.Actionable;
character.UpdateCharacterState();
Skill skill = skillTarget.Skill;
List<Character> targets = [.. skillTarget.Targets.Where(c => !c.IsUnselectable)];
List<Character> targets = [.. skillTarget.Targets.Where(c => c == character || !c.IsUnselectable)];
// 判断是否能够释放技能
if (targets.Count > 0 && CheckCanCast(character, skill, out double cost))