调整存【桃】ai

This commit is contained in:
157 2024-05-31 13:23:32 +08:00
parent 4dffce4b17
commit 7da0acffbc
1 changed files with 7 additions and 1 deletions

View File

@ -608,6 +608,12 @@ game.import("card", function () {
if (target !== _status.event.dying) { if (target !== _status.event.dying) {
if ( if (
!player.isPhaseUsing() || !player.isPhaseUsing() ||
player.needsToDiscard(0, (i, player) => {
return (
!player.canIgnoreHandcard(i) &&
taos.includes(i)
);
}) ||
player.hasSkillTag( player.hasSkillTag(
"nokeep", "nokeep",
true, true,
@ -619,7 +625,7 @@ game.import("card", function () {
) )
) )
return 2; return 2;
let min = 7.2 - (4 * player.hp) / player.maxHp, let min = 8.1 - (4.5 * player.hp) / player.maxHp,
nd = player.needsToDiscard(0, (i, player) => { nd = player.needsToDiscard(0, (i, player) => {
return ( return (
!player.canIgnoreHandcard(i) && !player.canIgnoreHandcard(i) &&