Merge pull request #1299 from lieren2023/lieren2023-patch-8

fix:技能无法被封印修复
This commit is contained in:
Spmario233 2024-05-01 21:42:05 +08:00 committed by GitHub
commit ccf99c998e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 13 additions and 2 deletions

View File

@ -917,6 +917,7 @@ game.import("character", function () {
},
},
kuangchan: {
locked: true,
ai: {
neg: true,
},
@ -2500,7 +2501,7 @@ game.import("character", function () {
},
},
nvquan: {
locked: true,
locked: false,
group: ["nvquan1", "nvquan2", "nvquan3"],
},
nvquan1: {

View File

@ -9148,6 +9148,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
fanghua: {
trigger: { player: "phaseJieshuBegin" },
forced: true,
locked: false,
unique: true,
filter: function () {
return game.hasPlayer(function (current) {

View File

@ -2034,6 +2034,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
);
},
forced: true,
locked: false,
async content(event, trigger, player) {
if (trigger.name == "phaseZhunbei") {
const num = player.getStorage("fakeshilu").length;
@ -2184,6 +2185,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
return !goon && groups.includes(event.source.identity);
},
forced: true,
locked: false,
logTarget(event, player) {
return event.source == player ? event.player : event.source;
},
@ -4725,6 +4727,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
);
},
forced: true,
locked: false,
popup: false,
preHidden: ["xijue_tuxi", "fakexijue_xiaoguo"],
content() {
@ -6464,6 +6467,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
gzrehuaiyi: {
audio: "gzhuaiyi",
enable: "phaseUse",
locked: false,
filter: function (event, player) {
return player.countCards("h") > 0;
},
@ -9987,6 +9991,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
},
trigger: { player: "phaseDrawBegin2" },
forced: true,
locked: false,
filter: (event, player) => !event.numFixed && player.isMaxHandcard(),
preHidden: true,
content: function () {
@ -11051,7 +11056,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
trigger: { player: "phaseJieshuBegin" },
zhenfa: "siege",
direct: true,
locked: true,
locked: false,
filter: function (event, player) {
return (
game.countPlayer() > 4 &&
@ -20566,6 +20571,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
return player.siege(event.target) && event.player.siege(event.target);
},
forced: true,
locked: false,
forceaudio: true,
logTarget: "target",
content: function () {

View File

@ -6232,6 +6232,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
boss_xiaorui: {
trigger: { global: "damageSource" },
forced: true,
locked: false,
logTarget: "source",
filter: function (event, player) {
var target = event.source;
@ -6281,6 +6282,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
boss_fengjian: {
trigger: { source: "damageSource" },
forced: true,
locked: false,
filter: function (event, player) {
return event.player.isAlive();
},
@ -6767,6 +6769,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
return num >= 0;
},
forced: true,
locked: false,
content: function () {
"step 0";
var targets = game.filterPlayer(function (current) {