ai优化
This commit is contained in:
parent
f78ab9510a
commit
6c7b5ea65b
|
@ -11499,7 +11499,11 @@ game.import("character", function () {
|
||||||
},
|
},
|
||||||
check: function (card) {
|
check: function (card) {
|
||||||
var player = _status.event.player;
|
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;
|
var num = lib.skill.dcpingxi.getNum() + ui.selected.cards.length;
|
||||||
if (
|
if (
|
||||||
num <
|
num <
|
||||||
|
|
Loading…
Reference in New Issue