unique标签补充,bugfix

This commit is contained in:
157 2024-05-05 19:15:52 +08:00
parent 15ca7ff26c
commit c57bf686db
6 changed files with 20 additions and 1 deletions

View File

@ -807,6 +807,7 @@ const skills = {
},
noname_duocai2: { charlotte: true },
nsbizhao: {
unique: true,
trigger: { player: "showCharacterAfter" },
forced: true,
hiddenSkill: true,

View File

@ -12193,7 +12193,9 @@ const skills = {
filter: function (event, player, name) {
if (player.hasSkill("zhiwei2")) return false;
if (!game.hasPlayer(current => current != player)) return false;
if (get.mode() == "guozhan") return event.name == "showCharacter" && (event.toShow.includes("gz_luyusheng") || event.toShow.includes("luyusheng"));
if (get.mode() == "guozhan") return event.name == "showCharacter" && event.toShow(name => {
return get.character(name, 3).includes("zhiwei");
});
return event.name != "showCharacter" && (name != "phaseBefore" || game.phaseNumber == 0);
},
content: function () {

View File

@ -4754,6 +4754,7 @@ const skills = {
},
},
yukito_yaxiang: {
unique: true,
forceunique: true,
enable: "chooseToUse",
limited: true,
@ -10573,6 +10574,7 @@ const skills = {
},
},
umi_qihuan: {
unique: true,
forceunique: true,
enable: "chooseToUse",
filter(summer, umi) {

View File

@ -5075,6 +5075,7 @@ const skills = {
},
},
dcxunbie: {
unique: true,
audio: 2,
trigger: {
player: "dying",

View File

@ -946,6 +946,7 @@ const skills = {
},
},
gaoling: {
unique: true,
audio: 2,
trigger: { player: "showCharacterAfter" },
hiddenSkill: true,

View File

@ -2674,8 +2674,15 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
},
},
fakezhiwei: {
unique: true,
audio: "zhiwei",
inherit: "zhiwei",
filter: function (event, player, name) {
if (!game.hasPlayer(current => current != player)) return false;
return event.name == "showCharacter" && event.toShow(name => {
return get.character(name, 3).includes("fakezhiwei");
});
},
content() {
"step 0";
player
@ -4914,6 +4921,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
},
},
fakebaoqie: {
unique: true,
audio: "baoqie",
trigger: { player: "showCharacterEnd" },
filter(event, player) {
@ -5087,6 +5095,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
},
},
fakehuirong: {
unique: true,
audio: "huirong",
trigger: { player: "showCharacterEnd" },
filter(event, player) {
@ -5258,6 +5267,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
},
},
fakeshiren: {
unique: true,
audio: "shiren",
trigger: { player: "showCharacterEnd" },
filter(event, player) {
@ -7524,6 +7534,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
},
//黄权
gzdianhu: {
unique: true,
audio: "xinfu_dianhu",
trigger: { player: "showCharacterAfter" },
forced: true,
@ -20613,6 +20624,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
},
},
gzguixiu: {
unique: true,
audio: "guixiu",
trigger: { player: ["showCharacterAfter", "removeCharacterBefore"] },
filter: function (event, player) {