修复国战【望归】
This commit is contained in:
parent
1b8efe1424
commit
15ca7ff26c
|
@ -12366,7 +12366,11 @@ const skills = {
|
||||||
},
|
},
|
||||||
direct: true,
|
direct: true,
|
||||||
filter: function (event, player) {
|
filter: function (event, player) {
|
||||||
return player.hasSkill("wanggui") && !player.hasSkill("wanggui2");
|
if (!player.hasSkill("wanggui") || player.hasSkill("wanggui2")) return false;
|
||||||
|
if (!player.isUnseen(2)) return true;
|
||||||
|
return !player.isUnseen() && [player.name1, player.name2].some(name => {
|
||||||
|
return get.character(name, 3).includes("wanggui");
|
||||||
|
});
|
||||||
},
|
},
|
||||||
preHidden: true,
|
preHidden: true,
|
||||||
content: function () {
|
content: function () {
|
||||||
|
|
|
@ -20617,9 +20617,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
|
||||||
trigger: { player: ["showCharacterAfter", "removeCharacterBefore"] },
|
trigger: { player: ["showCharacterAfter", "removeCharacterBefore"] },
|
||||||
filter: function (event, player) {
|
filter: function (event, player) {
|
||||||
if (event.name == "removeCharacter" || event.name == "changeVice")
|
if (event.name == "removeCharacter" || event.name == "changeVice")
|
||||||
return event.toRemove.some(name => {
|
return get.character(event.toRemove, 3).includes("gzguixiu") && player.isDamaged();
|
||||||
return get.character(name, 3).includes("gzguixiu");
|
|
||||||
}) && player.isDamaged();
|
|
||||||
return event.toShow.some(name => {
|
return event.toShow.some(name => {
|
||||||
return get.character(name, 3).includes("gzguixiu");
|
return get.character(name, 3).includes("gzguixiu");
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue