国战禁用任意变更势力的技能

This commit is contained in:
157 2024-04-15 18:17:47 +08:00 committed by Rintim
parent 9f169acf73
commit 4796780139
No known key found for this signature in database
GPG Key ID: BE9E1EA615BACFCF
5 changed files with 70 additions and 62 deletions

View File

@ -486,17 +486,18 @@ game.import("character", function () {
},
},
//姜维
jsrgjinfa: {
audio: 2,
enable: "phaseUse",
usable: 1,
filterCard: true,
position: "h",
discard: false,
lose: false,
delay: false,
check: function () {
return 1 + Math.random();
jsrgjinfa:{
forbid:['guozhan'],
audio:2,
enable:'phaseUse',
usable:1,
filterCard:true,
position:'h',
discard:false,
lose:false,
delay:false,
check:function(){
return 1+Math.random();
},
async content(event, trigger, player) {
await player.showCards(event.cards);
@ -5059,10 +5060,11 @@ game.import("character", function () {
},
},
//许攸
jsrglipan: {
audio: 2,
trigger: {
player: "phaseEnd",
jsrglipan:{
forbid:['guozhan'],
audio:2,
trigger:{
player:'phaseEnd',
},
direct: true,
content: function () {
@ -5327,11 +5329,12 @@ game.import("character", function () {
},
},
//吕布
jsrgwuchang: {
audio: 2,
trigger: {
player: "gainAfter",
global: "loseAsyncAfter",
jsrgwuchang:{
forbid:['guozhan'],
audio:2,
trigger:{
player:'gainAfter',
global:'loseAsyncAfter',
},
forced: true,
filter: function (event, player) {
@ -5474,15 +5477,16 @@ game.import("character", function () {
},
},
//张郃
jsrgqiongtu: {
audio: 2,
enable: "chooseToUse",
groupSkill: true,
viewAs: {
name: "wuxie",
suit: "none",
number: null,
isCard: true,
jsrgqiongtu:{
//forbid:['guozhan'],
audio:2,
enable:'chooseToUse',
groupSkill:true,
viewAs:{
name:'wuxie',
suit:'none',
number:null,
isCard:true,
},
filter: function (event, player) {
if (!player.countCards("he", (card) => _status.connectMode || get.type(card) != "basic"))
@ -6503,12 +6507,13 @@ game.import("character", function () {
},
},
//张辽
jsrgzhengbing: {
audio: 2,
enable: "phaseUse",
usable: 3,
filter: function (event, player) {
return player.group == "qun";
jsrgzhengbing:{
//forbid:['guozhan'],
audio:2,
enable:'phaseUse',
usable:3,
filter:function(event,player){
return player.group=='qun';
},
filterCard: lib.filter.cardRecastable,
check: function (card) {

View File

@ -226,11 +226,12 @@ game.import("character", function () {
},
},
//魏武帝
junkguixin: {
init: function () {
if (!_status.junkguixin) {
_status.junkguixin = [];
if (!_status.characterlist) {
junkguixin:{
forbid:['guozhan'],
init:function(){
if(!_status.junkguixin){
_status.junkguixin=[];
if(!_status.characterlist){
lib.skill.pingjian.initList();
}
for (const name of _status.characterlist) {

View File

@ -7597,14 +7597,15 @@ game.import("character", function () {
},
},
//孙尚香
sbjieyin: {
trigger: { player: "phaseUseBegin" },
forced: true,
locked: false,
dutySkill: true,
group: ["sbjieyin_init", "sbjieyin_fail"],
filter: function (event, player) {
return game.hasPlayer((current) => current.hasMark("sbjieyin_mark"));
sbjieyin:{
//forbid:['guozhan'],
trigger:{player:'phaseUseBegin'},
forced:true,
locked:false,
dutySkill:true,
group:['sbjieyin_init','sbjieyin_fail'],
filter:function(event,player){
return game.hasPlayer(current=>current.hasMark('sbjieyin_mark'));
},
content: function () {
"step 0";

View File

@ -6600,10 +6600,10 @@ game.import("character", function () {
},
},
//OL孟达
olgoude: {
audio: 2,
trigger: {
global: "phaseEnd",
olgoude:{
audio:2,
trigger:{
global:'phaseEnd',
},
filter: function (event, player) {
var list = [];

View File

@ -19977,16 +19977,17 @@ game.import("character", function () {
},
},
},
renshe: {
audio: 2,
trigger: { player: "damageEnd" },
direct: true,
content: function () {
"step 0";
var choiceList = [
"将势力变更为场上现存的一个其他势力",
"令〖外使〗的发动次数+1直到下个出牌阶段结束",
"与另一名其他角色各摸一张牌",
renshe:{
forbid:['guozhan'],
audio:2,
trigger:{player:'damageEnd'},
direct:true,
content:function(){
'step 0'
var choiceList=[
'将势力变更为场上现存的一个其他势力',
'令〖外使〗的发动次数+1直到下个出牌阶段结束',
'与另一名其他角色各摸一张牌',
];
var controls = ["选项二"];
if (