diff --git a/character/huicui.js b/character/huicui.js index 72a1c7331..3a979c9fc 100644 --- a/character/huicui.js +++ b/character/huicui.js @@ -12962,14 +12962,13 @@ game.import("character", function () { }, usable: 1, async cost(event, trigger, player) { - "step 0"; var num = player.getFriends().length; if ( !game.hasPlayer(function (current) { return current != player && current.getFriends().length > num; }) ) { - player + event.result = await player .chooseToDiscard( "h", get.prompt("rewangzu"), @@ -12978,12 +12977,11 @@ game.import("character", function () { ) .set("ai", function (card) { return 7 - get.value(card); - }); + }) + .forResult(); } else { - player.chooseBool(get.prompt("rewangzu"), "随机弃置一张牌并令伤害-1"); + event.result = await player.chooseBool(get.prompt("rewangzu"), "随机弃置一张牌并令伤害-1").forResult(); } - "step 1"; - event.result = result; }, async content(event, trigger, player) { trigger.num--; diff --git a/character/sp.js b/character/sp.js index 8b9ace269..915ad0956 100755 --- a/character/sp.js +++ b/character/sp.js @@ -23921,17 +23921,16 @@ game.import("character", function () { filter: function (event, player) { if (event.name == "loseAsync") { if (event.type != "gain") return false; - var hs = current.getCards("h"), - cards = event.getl(player).cards2; return game.hasPlayer(function (current) { if (current == player) return false; + var hs = current.getCards("h"), + cards = event.getl(player).cards2; var cardsx = event.getg(current); for (var i of cardsx) { if ( + hs.includes(i) && cards.includes(i) && - hs.includes(card) && - cards.includes(card) && - get.color(card, player) == "black" + get.color(i, player) == "black" ) return true; }