没有描述的技能不参与优先级选择

This commit is contained in:
kuangthree 2024-01-20 12:12:47 +08:00
parent d196294b86
commit 63be1163f5
1 changed files with 2 additions and 2 deletions

View File

@ -2030,10 +2030,10 @@ export const Content = {
}
else {
event.choice = usableSkills.filter(n => n.priority == usableSkills[0].priority);
//现在只要找到一个同优先度技能为silent 便优先执行该技能
//现在只要找到一个同优先度技能为silent,或没有技能描述的技能 便优先执行该技能
const silentSkill = event.choice.find(item => {
const skillInfo = lib.skill[item.skill];
return (skillInfo && skillInfo.silent);
return (skillInfo && (skillInfo.silent || !lib.translate[item.skill]));
})
if (silentSkill){
event.current = silentSkill;