更换武将牌补充

This commit is contained in:
157 2024-05-06 19:42:20 +08:00
parent 27560c8108
commit 561ab378fa
9 changed files with 28 additions and 14 deletions

View File

@ -5396,13 +5396,13 @@ const skills = {
unique: true,
forceunique: true,
init(player) {
if (player.storage.nscongjun_show) return false;
if (player.storage.nscongjun_show || ![player.name1, player.name2].includes("ns_huamulan")) return false;
var change = function (target) {
if (target == player) {
var list;
if (_status.connectMode) {
list = get.charactersOL(function (i) {
return lib.character[i][0] != "male";
return lib.character[i][0] == "male";
});
} else {
list = get.gainableCharacters(function (info) {
@ -5427,7 +5427,12 @@ const skills = {
show: {
trigger: { global: "useCard" },
filter(event, player) {
return player.getEnemies().includes(event.player) && event.card.name == "wuxie" && event.getRand() < 0.1;
return (
player.storage.nscongjun_show &&
event.card.name == "wuxie" &&
event.getRand() < 0.1 &&
player.getEnemies().includes(event.player)
);
},
direct: true,
skillAnimation: true,

View File

@ -630,7 +630,7 @@ game.import("character", function () {
player.turnOver(false);
"step 3";
player.draw(4);
player.reinit("gjqt_xieyi", "gjqt_chuqi");
player.reinit(get.character(player.name2, 3).includes("humeng") ? player.name2 : player.name1, "gjqt_chuqi");
player.hp = player.maxHp;
"step 4";
if (event.yanjia) {

View File

@ -2382,7 +2382,7 @@ game.import("character", function () {
trigger: { player: "phaseBefore" },
unique: true,
skillAnimation: true,
forceunique: true,
//forceunique: true,
filter() {
return game.roundNumber >= 3;
},
@ -2407,7 +2407,7 @@ game.import("character", function () {
};
player.awakenSkill("szbianshen");
"step 1";
player.reinit("hs_shizugui", result.links[0]);
player.reinit(get.character(player.name2, 3).includes("szbianshen") ? player.name2 : player.name1, result.links[0]);
player.hp = player.maxHp;
player.update();
},

View File

@ -12431,6 +12431,7 @@ const skills = {
if (evt.player != event.player) return false;
return true;
},
usable: 1,
logTarget: "player",
check: function (event, player) {
var target = event.player;

View File

@ -7569,6 +7569,7 @@ const skills = {
trigger: { player: "phaseZhunbeiBegin" },
limited: true,
unique: true,
forceunique: true,
charlotte: true,
skillAnimation: true,
animationColor: "water",
@ -7576,6 +7577,7 @@ const skills = {
return player.isDamaged();
},
check(event, player) {
if (![player.name1, player.name2].includes("key_mio")) return false;
return player.hp <= 1 || player.getDamagedHp() > 1;
},
content() {
@ -7644,12 +7646,14 @@ const skills = {
limited: true,
charlotte: true,
unique: true,
forceunique: true,
skillAnimation: true,
animationColor: "water",
filter(event, player) {
return player.isDamaged();
},
check(event, player) {
if (![player.name1, player.name2].includes("key_midori")) return false;
return player.hp <= 1 || player.getDamagedHp() > 1;
},
content() {

View File

@ -19319,7 +19319,6 @@ const skills = {
limited: true,
skillAnimation: true,
animationColor: "orange",
forceunique: true,
filter: function (event, player) {
return player.storage.fanghun2 > 0;
},
@ -19377,7 +19376,7 @@ const skills = {
player.awakenSkill("fuhan");
"step 1";
event.num = Math.min(event.num, 8);
player.reinitCharacter("zhaoxiang", result.links[0]);
player.reinitCharacter(get.character(player.name2, 3).includes("fuhan") ? player.name2 : player.name1, result.links[0]);
"step 2";
var num = event.num - player.maxHp;
if (num > 0) player.gainMaxHp(num);
@ -19395,7 +19394,6 @@ const skills = {
limited: true,
skillAnimation: true,
animationColor: "orange",
forceunique: true,
filter: function (event, player) {
return player.countMark("fanghun") > 0;
},
@ -24477,7 +24475,6 @@ const skills = {
audio: 2,
unique: true,
juexingji: true,
forceunique: true,
derivation: "xiaoji",
trigger: { player: "phaseZhunbeiBegin" },
filter: function (event, player) {

View File

@ -15585,7 +15585,6 @@ const skills = {
limited: true,
skillAnimation: true,
animationColor: "orange",
forceunique: true,
filter: function (event, player) {
return player.countMark("fanghun") > 0;
},

View File

@ -2811,7 +2811,7 @@ game.import("character", function () {
unique: true,
forceunique: true,
filter: function () {
return Math.random() < 0.5;
return Math.random() < 0.5 && [player.name1, player.name2].includes("pal_longkui");
},
derivation: ["diesha", "guijiang"],
content: function () {

View File

@ -816,7 +816,11 @@ game.import("character", function () {
forceunique: true,
enable: "phaseUse",
filter: function (event, player) {
return !player.hasSkill("tongyu_guiyin") && !player.getStat("damage");
return (
!player.hasSkill("tongyu_guiyin") &&
!player.getStat("damage") &&
[player.name1, player.name2].includes("yxs_luobinhan")
);
},
derivation: ["lzhangyi", "jimin", "tongyu"],
content: function () {
@ -848,7 +852,11 @@ game.import("character", function () {
forceunique: true,
enable: "phaseUse",
filter: function (event, player) {
return player.countCards("he") > 0 && !player.hasSkill("tongyu_guiyin");
return (
player.countCards("he") > 0 &&
!player.hasSkill("tongyu_guiyin") &&
[player.name1, player.name2].includes("yxs_luobinhan")
);
},
filterCard: true,
position: "he",