庞山民【才思】bugfix,庞会【夙仇】子技能改具体写法

This commit is contained in:
mengxinzxz 2024-05-30 22:52:52 +08:00
parent 5b14f043fd
commit f3ca8d1a22
1 changed files with 12 additions and 3 deletions

View File

@ -2493,7 +2493,7 @@ const skills = {
return get.type(event.card) == "basic" && _status.currentPhase; return get.type(event.card) == "basic" && _status.currentPhase;
}, },
prompt2: function (event, player) { prompt2: function (event, player) {
const num = Math.pow(2, player.countMark("dccaisi_more") - 1); const num = Math.pow(2, player.countMark("dccaisi_more"));
return `${player == _status.currentPhase ? "牌堆" : "弃牌"}堆中随机获得${get.cnNumber(num)}张非基本牌`; return `${player == _status.currentPhase ? "牌堆" : "弃牌"}堆中随机获得${get.cnNumber(num)}张非基本牌`;
}, },
content: function* (event, map) { content: function* (event, map) {
@ -2501,7 +2501,7 @@ const skills = {
trigger = map.trigger; trigger = map.trigger;
const position = player == _status.currentPhase ? "cardPile" : "discardPile"; const position = player == _status.currentPhase ? "cardPile" : "discardPile";
let cards = [], let cards = [],
num = Math.pow(2, player.countMark("dccaisi_more") - 1); num = Math.pow(2, player.countMark("dccaisi_more"));
while (num > 0) { while (num > 0) {
num--; num--;
let card = get[position](card => get.type(card) != "basic" && !cards.includes(card)); let card = get[position](card => get.type(card) != "basic" && !cards.includes(card));
@ -7079,8 +7079,17 @@ const skills = {
mark: true, mark: true,
marktext: "仇", marktext: "仇",
intro: { content: "使用牌不可被响应" }, intro: { content: "使用牌不可被响应" },
inherit: "twsaotao",
audio: "dcsuchou", audio: "dcsuchou",
trigger: { player: "useCard" },
filter(event, player) {
return event.card.name == "sha" || get.type(event.card) == "trick";
},
forced: true,
content() {
trigger.directHit.addArray(game.players);
game.log(trigger.card, "不可被响应");
},
ai: { directHit_ai: true },
}, },
}, },
}, },