bugfix
This commit is contained in:
parent
b69f2716eb
commit
6e9bd21f26
|
@ -12198,7 +12198,7 @@ const skills = {
|
||||||
filter: function (event, player, name) {
|
filter: function (event, player, name) {
|
||||||
if (player.hasSkill("zhiwei2")) return false;
|
if (player.hasSkill("zhiwei2")) return false;
|
||||||
if (!game.hasPlayer(current => current != player)) 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 get.character(name, 3).includes("zhiwei");
|
||||||
});
|
});
|
||||||
return event.name != "showCharacter" && (name != "phaseBefore" || game.phaseNumber == 0);
|
return event.name != "showCharacter" && (name != "phaseBefore" || game.phaseNumber == 0);
|
||||||
|
|
|
@ -14207,7 +14207,7 @@ const skills = {
|
||||||
.set("ai", () => {
|
.set("ai", () => {
|
||||||
const player = get.event("player"),
|
const player = get.event("player"),
|
||||||
trigger = get.event().getTrigger();
|
trigger = get.event().getTrigger();
|
||||||
const cards = trigger.cards.filterInD();
|
const cards = trigger.cards ? trigger.cards.filterInD() : [];
|
||||||
if (get.event().controls.includes("拿牌")) {
|
if (get.event().controls.includes("拿牌")) {
|
||||||
if (
|
if (
|
||||||
cards.reduce((sum, card) => {
|
cards.reduce((sum, card) => {
|
||||||
|
|
|
@ -2714,7 +2714,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
|
||||||
inherit: "zhiwei",
|
inherit: "zhiwei",
|
||||||
filter: function (event, player, name) {
|
filter: function (event, player, name) {
|
||||||
if (!game.hasPlayer(current => current != player)) return false;
|
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");
|
return get.character(name, 3).includes("fakezhiwei");
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue