From 0efe2da2dad6e6e97d4ccb84308f7b0333340d4d Mon Sep 17 00:00:00 2001 From: lieren2023 <131325076+lieren2023@users.noreply.github.com> Date: Tue, 4 Jun 2024 23:18:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=84=E5=B7=BE=E5=A4=A9=E5=85=B5=E7=AC=A6?= =?UTF-8?q?=E6=80=BB=E5=BE=A1=20=E6=94=B9=E7=94=A8player.hasSkill(xxx,=20n?= =?UTF-8?q?ull,=20null,=20false)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 另:章武添加derivation --- mode/guozhan.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mode/guozhan.js b/mode/guozhan.js index 3b3fc2e56..4850cf351 100644 --- a/mode/guozhan.js +++ b/mode/guozhan.js @@ -6724,7 +6724,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) { if (!player.hasEmptySlot(2)) return; // if (player.hasSkill("hongfa")) { // 村规 - if (player.skills.includes("hongfa")) { + if (player.hasSkill("hongfa", null, null, false)) { num += player.getExpansions("huangjintianbingfu").length; } return ( @@ -15893,7 +15893,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) { filter: function (event, player) { // if (!player.hasSkill("gzzongyu")) return false; // 村规 - if (!player.skills.includes("gzzongyu")) return false; + if (!player.hasSkill("gzzongyu", null, null, false)) return false; if (!["equip3", "equip4"].includes(get.subtype(event.card))) return false; for (var i = 0; i < ui.discardPile.childElementCount; i++) { if (ui.discardPile.childNodes[i].name == "liulongcanjia") return true; @@ -20068,7 +20068,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) { var num = get.population("qun"); // if (player.hasSkill("hongfa")) { // 村规 - if (player.skills.includes("hongfa")) { + if (player.hasSkill("hongfa", null, null, false)) { num += player.getExpansions("huangjintianbingfu").length; } var cards = get.cards(num); @@ -20094,6 +20094,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) { }, zhangwu: { audio: 2, + derivation: "feilongduofeng", unique: true, forceunique: true, ai: {