乐大乔【姊希】ai bugfix

This commit is contained in:
mengxinzxz 2024-06-01 11:18:10 +08:00
parent c57de0c672
commit 2ed625232f
1 changed files with 2 additions and 2 deletions

View File

@ -1953,12 +1953,12 @@ const skills = {
const card = player
.getCards("h", card => {
if (get.value(card) >= 7) return false;
return card.hasGaintag("dcqiqin_tag") && game.hasPlayer(target => target.canAddJudge(get.autoViewAs({ name: "dczixi_" + name }, [card])));
return card.hasGaintag("dcqiqin_tag") && game.hasPlayer(target => target.canAddJudge(get.autoViewAs({ name: "dczixi_" + button.link }, [card])));
})
.sort((a, b) => get.value(a) - get.value(b))[0];
if (
game.hasPlayer(current => {
return get.attitude(player, current) < 0 && lib.skill.dczixi.zixiList.some(name => current.canAddJudge(get.autoViewAs({ name: "dczixi_" + name }, [card])));
return get.attitude(player, current) < 0 && lib.skill.dczixi.zixiList.some(name => current.canAddJudge(get.autoViewAs({ name: "dczixi_" + button.link }, [card])));
})
)
return list.indexOf(button.link) + 1;