bugfix
This commit is contained in:
parent
b69f2716eb
commit
6e9bd21f26
|
@ -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);
|
||||
|
|
|
@ -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) => {
|
||||
|
|
|
@ -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");
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue