mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-12-05 00:06:02 +00:00
不可选中时能给自己放技能
This commit is contained in:
parent
88d6d9a8c9
commit
0a1bb0b2a5
@ -1062,7 +1062,7 @@ namespace Milimoe.FunGame.Core.Model
|
|||||||
character.CharacterState = CharacterState.Actionable;
|
character.CharacterState = CharacterState.Actionable;
|
||||||
character.UpdateCharacterState();
|
character.UpdateCharacterState();
|
||||||
Skill skill = skillTarget.Skill;
|
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))
|
if (targets.Count > 0 && CheckCanCast(character, skill, out double cost))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user