没有描述的技能不参与优先级选择
This commit is contained in:
parent
d196294b86
commit
63be1163f5
|
@ -2030,10 +2030,10 @@ export const Content = {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
event.choice = usableSkills.filter(n => n.priority == usableSkills[0].priority);
|
event.choice = usableSkills.filter(n => n.priority == usableSkills[0].priority);
|
||||||
//现在只要找到一个同优先度技能为silent 便优先执行该技能
|
//现在只要找到一个同优先度技能为silent,或没有技能描述的技能 便优先执行该技能
|
||||||
const silentSkill = event.choice.find(item => {
|
const silentSkill = event.choice.find(item => {
|
||||||
const skillInfo = lib.skill[item.skill];
|
const skillInfo = lib.skill[item.skill];
|
||||||
return (skillInfo && skillInfo.silent);
|
return (skillInfo && (skillInfo.silent || !lib.translate[item.skill]));
|
||||||
})
|
})
|
||||||
if (silentSkill){
|
if (silentSkill){
|
||||||
event.current = silentSkill;
|
event.current = silentSkill;
|
||||||
|
|
Loading…
Reference in New Issue