From 6c7b5ea65b8cbb6b9c7553bf906dcf5062669ea6 Mon Sep 17 00:00:00 2001 From: 157 <3619242020@qq.com> Date: Wed, 1 May 2024 15:02:55 +0800 Subject: [PATCH] =?UTF-8?q?ai=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/xianding.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/character/xianding.js b/character/xianding.js index f20789f1c..ab0da48b2 100644 --- a/character/xianding.js +++ b/character/xianding.js @@ -11499,7 +11499,11 @@ game.import("character", function () { }, check: function (card) { var player = _status.event.player; - if (!player.hasSkill("dcpingxi")) return 0; + if (!player.hasSkill("dcpingxi")) { + if (ui.selected.cards.length) return 0; + if (player.needsToDiscard()) return 12 - get.value(card); + return 2 * player.hp + 1.5 - get.value(card); + } var num = lib.skill.dcpingxi.getNum() + ui.selected.cards.length; if ( num <