修复国战【望归】

This commit is contained in:
157 2024-05-05 18:38:03 +08:00
parent 1b8efe1424
commit 15ca7ff26c
2 changed files with 6 additions and 4 deletions

View File

@ -12366,7 +12366,11 @@ const skills = {
},
direct: true,
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,
content: function () {

View File

@ -20617,9 +20617,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
trigger: { player: ["showCharacterAfter", "removeCharacterBefore"] },
filter: function (event, player) {
if (event.name == "removeCharacter" || event.name == "changeVice")
return event.toRemove.some(name => {
return get.character(name, 3).includes("gzguixiu");
}) && player.isDamaged();
return get.character(event.toRemove, 3).includes("gzguixiu") && player.isDamaged();
return event.toShow.some(name => {
return get.character(name, 3).includes("gzguixiu");
});