This commit is contained in:
Spmario233 2024-05-06 19:25:35 +08:00
parent b69f2716eb
commit 6e9bd21f26
3 changed files with 3 additions and 3 deletions

View File

@ -12198,7 +12198,7 @@ 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(name => {
if (get.mode() == "guozhan") return event.name == "showCharacter" && event.toShow.some(name => {
return get.character(name, 3).includes("zhiwei");
});
return event.name != "showCharacter" && (name != "phaseBefore" || game.phaseNumber == 0);

View File

@ -14207,7 +14207,7 @@ const skills = {
.set("ai", () => {
const player = get.event("player"),
trigger = get.event().getTrigger();
const cards = trigger.cards.filterInD();
const cards = trigger.cards ? trigger.cards.filterInD() : [];
if (get.event().controls.includes("拿牌")) {
if (
cards.reduce((sum, card) => {

View File

@ -2714,7 +2714,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
inherit: "zhiwei",
filter: function (event, player, name) {
if (!game.hasPlayer(current => current != player)) return false;
return event.name == "showCharacter" && event.toShow(name => {
return event.name == "showCharacter" && event.toShow.some(name => {
return get.character(name, 3).includes("fakezhiwei");
});
},