This commit is contained in:
mengxinzxz 2024-05-10 03:40:20 +08:00
parent c8cf837904
commit c6f0129fad
5 changed files with 14 additions and 30 deletions

View File

@ -77,7 +77,7 @@ const skills = {
if (card.cards && (card.cards || []).some(i => get.position(i) == "h")) return false; if (card.cards && (card.cards || []).some(i => get.position(i) == "h")) return false;
}, },
cardSavable() { cardSavable() {
return lib.skill.dctunchu.subSkill.debuff.mod.cardEnabled2.apply(this, arguments); return lib.skill.dctunchu.subSkill.debuff.mod.cardEnabled.apply(this, arguments);
}, },
}, },
}, },

View File

@ -1,5 +1,5 @@
const characters = { const characters = {
dc_sb_jiaxu: ["male", "qun", 3, ["dcsbsushen", "dcsbrushi", "dcsbfumou"]], dc_sb_jiaxu: ["male", "qun", 3, ["dcsbsushen", "dcsbfumou"]],
guanyue: ["male", "shu", 4, ["dcshouzhi", "dcfenhui"]], guanyue: ["male", "shu", 4, ["dcshouzhi", "dcfenhui"]],
sp_zhenji: ["female", "qun", 3, ["dcjijie", "dchuiji"]], sp_zhenji: ["female", "qun", 3, ["dcjijie", "dchuiji"]],
wu_guanyu: ["male", "shu", 5, ["dcjuewu", "dcwuyou", "dcyixian"]], wu_guanyu: ["male", "shu", 5, ["dcjuewu", "dcwuyou", "dcyixian"]],

View File

@ -103,7 +103,7 @@ const dynamicTranslates = {
str += "阴并将这些牌交给另一名其他角色B然后你与A各摸X张牌X为A以此法失去的手牌数"; str += "阴并将这些牌交给另一名其他角色B然后你与A各摸X张牌X为A以此法失去的手牌数";
if (!storage) str += "</span>"; if (!storage) str += "</span>";
if (storage) str += '<span class="bluetext">'; if (storage) str += '<span class="bluetext">';
str += "阳令A依次使用这些牌中所有其可以使用的牌。"; str += "阳令A依次视为使用这些牌中所有其可以使用的牌。";
if (storage) str += "</span>"; if (storage) str += "</span>";
return str; return str;
}, },

View File

@ -132,31 +132,15 @@ const skills = {
aim.chat("555一张都拿不到~"); aim.chat("555一张都拿不到~");
} }
} else { } else {
cards = cards.filter(card => { for (const card of cards) {
return target.hasUseTarget(card) && get.owner(card) == target && get.position(card) == "h"; const cardx = {
}); name: get.name(card, player),
while ( nature: get.nature(card, player),
cards.some(card => { isCard: true,
return target.hasUseTarget(card) && get.owner(card) == target && get.position(card) == "h"; };
}) if (target.hasUseTarget(cardx)) {
) { await target.chooseUseTarget(cardx, true, false);
const result = await target }
.chooseToUse(
true,
function (card) {
const event = get.event();
if (!lib.filter.cardEnabled(card, event.player, event)) return false;
return get.event("cards").includes(card);
},
"覆谋:请依次使用展示的牌"
)
.set("cards", cards)
.forResult();
if (result.bool) {
cards = cards.filter(card => {
return target.hasUseTarget(card) && get.owner(card) == target && get.position(card) == "h";
});
} else break;
} }
} }
}, },
@ -165,7 +149,7 @@ const skills = {
mark: true, mark: true,
intro: { intro: {
content(storage) { content(storage) {
if (storage) return "转换技,出牌阶段限一次,你可以观看一名其他角色的手牌并展示其一半手牌,令其依次使用这些牌中所有其可以使用的牌。"; if (storage) return "转换技,出牌阶段限一次,你可以观看一名其他角色的手牌并展示其一半手牌,令其依次视为使用这些牌中所有其可以使用的牌。";
return "转换技出牌阶段限一次你可以观看一名其他角色A的手牌并展示其一半手牌并将这些牌交给另一名其他角色B然后你与A各摸X张牌X为A以此法失去的手牌数。"; return "转换技出牌阶段限一次你可以观看一名其他角色A的手牌并展示其一半手牌并将这些牌交给另一名其他角色B然后你与A各摸X张牌X为A以此法失去的手牌数。";
}, },
}, },

View File

@ -598,7 +598,7 @@ const translates = {
dcsbrushi: "入世", dcsbrushi: "入世",
dcsbrushi_info: "限定技,出牌阶段,你可以将你当前〖覆谋〗的状态、你的手牌数和你的体力值调整为你发动〖肃身〗时的记录。", dcsbrushi_info: "限定技,出牌阶段,你可以将你当前〖覆谋〗的状态、你的手牌数和你的体力值调整为你发动〖肃身〗时的记录。",
dcsbfumou: "覆谋", dcsbfumou: "覆谋",
dcsbfumou_info: "转换技出牌阶段限一次你可以观看一名其他角色A的手牌并展示其一半手牌并将这些牌交给另一名其他角色B然后你与A各摸X张牌X为A以此法失去的手牌数令A依次使用这些牌中所有其可以使用的牌。", dcsbfumou_info: "转换技出牌阶段限一次你可以观看一名其他角色A的手牌并展示其一半手牌并将这些牌交给另一名其他角色B然后你与A各摸X张牌X为A以此法失去的手牌数令A依次视为使用这些牌中所有其可以使用的牌。",
}; };
export default translates; export default translates;