库特莉亚芙卡【巧手】bugfix

This commit is contained in:
Spmario233 2024-05-05 17:41:01 +08:00
parent cbf59815ab
commit 9e674d4124
1 changed files with 6 additions and 4 deletions

View File

@ -1251,15 +1251,17 @@ const skills = {
} }
}, },
async content(event, trigger, player) { 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; if (!player.getExpansions("kud_qiaoshou_equip").length) return;
player.addTempSkill("kud_qiaoshou_equip", { player.addTempSkill("kud_qiaoshou_equip", {
player: ["phaseUseEnd", "phaseZhunbeiBegin"], player: ["phaseUseEnd", "phaseZhunbeiBegin"],
}); });
var name = event.cost_data.cardname; const name = event.cost_data.cardname;
player.storage.kud_qiaoshou_equip2 = name; player.storage.kud_qiaoshou_equip2 = name;
player.markAuto("kud_qiaoshou_equip", cards); player.markAuto("kud_qiaoshou_equip", event.cards);
var info = lib.card[name].skills; const info = lib.card[name].skills;
if (info && info.length) player.addAdditionalSkill("kud_qiaoshou_equip", info); if (info && info.length) player.addAdditionalSkill("kud_qiaoshou_equip", info);
game.log(player, "声明了", "#y" + get.translation(name)); game.log(player, "声明了", "#y" + get.translation(name));
await player.draw(); await player.draw();