dcfenhui的ai修复

This commit is contained in:
lieren2023 2024-06-08 23:44:39 +08:00 committed by GitHub
parent e3b36afad0
commit 6e0e2aea61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1154,7 +1154,7 @@ const skills = {
const count = Math.min(
5,
player.getAllHistory("useCard", evt => {
return get.color(evt.card, player) === "black" && evt.targets && evt.targets.includes(target);
return evt.targets && evt.targets.includes(target);
}).length
);
let value = Math.max(player.getHp(true), 3) - count;