From 9e674d41240c8b8de8653ef8dfd6d1e33b8e91c7 Mon Sep 17 00:00:00 2001 From: Spmario233 Date: Sun, 5 May 2024 17:41:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E7=89=B9=E8=8E=89=E4=BA=9A=E8=8A=99?= =?UTF-8?q?=E5=8D=A1=E3=80=90=E5=B7=A7=E6=89=8B=E3=80=91bugfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/key/skill.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/character/key/skill.js b/character/key/skill.js index ab0d089bd..1a835047c 100644 --- a/character/key/skill.js +++ b/character/key/skill.js @@ -1251,15 +1251,17 @@ const skills = { } }, async content(event, trigger, player) { - await player.addToExpansion(event.cards, player, "give").gaintag.add("kud_qiaoshou_equip"); + const next = player.addToExpansion(event.cards, player, "give"); + next.gaintag.add("kud_qiaoshou_equip"); + await next; if (!player.getExpansions("kud_qiaoshou_equip").length) return; player.addTempSkill("kud_qiaoshou_equip", { player: ["phaseUseEnd", "phaseZhunbeiBegin"], }); - var name = event.cost_data.cardname; + const name = event.cost_data.cardname; player.storage.kud_qiaoshou_equip2 = name; - player.markAuto("kud_qiaoshou_equip", cards); - var info = lib.card[name].skills; + player.markAuto("kud_qiaoshou_equip", event.cards); + const info = lib.card[name].skills; if (info && info.length) player.addAdditionalSkill("kud_qiaoshou_equip", info); game.log(player, "声明了", "#y" + get.translation(name)); await player.draw();