Skip to content

Commit

Permalink
修复SCL祢衡
Browse files Browse the repository at this point in the history
  • Loading branch information
PZ157 committed Oct 5, 2024
1 parent 3f75d62 commit a5a024a
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions character/offline/skill.js
Original file line number Diff line number Diff line change
Expand Up @@ -526,9 +526,14 @@ const skills = {
}
},
onremove: true,
intro: {
content(storage, player) {
return "本回合还可使用" + get.cnNumber(5 - storage) + "张牌";
}
},
mod: {
targetInRange() {
return true;
targetInRange(card, player) {
if (player.isPhaseUsing()) return true;
},
aiOrder(player, card, num) {
let name = get.name(card);
Expand All @@ -540,7 +545,7 @@ const skills = {
if (player.countMark("scls_kuangcai") >= 5) return false;
},
cardUsable(card, player) {
if (player.countMark("scls_kuangcai") >= 5) return false;
if (!player.isPhaseUsing() || player.countMark("scls_kuangcai") >= 5) return false;
if (get.info(card) && get.info(card).forceUsable) return;
return Infinity;
},
Expand All @@ -552,7 +557,9 @@ const skills = {
player: "useCard1",
},
locked: false,
prompt2: "摸一张牌,本回合至多使用五张牌",
prompt2(event, player) {
return "摸一张牌" + (player.hasMark("scls_kuangcai") ? "" : ",本回合至多使用五张牌");
},
frequent(event, player) {
return player.hasMark("scls_kuangcai");
},
Expand All @@ -567,7 +574,7 @@ const skills = {
subSkill: {
clear: {
trigger: {
player: "phaseUseAfter"
player: "phaseAfter"
},
silent: true,
async content(event, trigger, player) {
Expand Down

0 comments on commit a5a024a

Please sign in to comment.