黄巾天兵符总御 改用player.hasSkill(xxx, null, null, false)

另:章武添加derivation
This commit is contained in:
lieren2023 2024-06-04 23:18:38 +08:00 committed by GitHub
parent ea724b68a4
commit 0efe2da2da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 3 deletions

View File

@ -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: {