Merge pull request #719 from lieren2023/lieren2023-patch-7
修复技能无法封印的bug
This commit is contained in:
commit
0919a726cd
|
@ -272,6 +272,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
return get.cardNameLength(event.card)==player.getHistory('useCard').indexOf(event.getParent())+1;
|
return get.cardNameLength(event.card)==player.getHistory('useCard').indexOf(event.getParent())+1;
|
||||||
},
|
},
|
||||||
direct:true,
|
direct:true,
|
||||||
|
locked:false,
|
||||||
content:function(){
|
content:function(){
|
||||||
'step 0'
|
'step 0'
|
||||||
var num=get.cardNameLength(trigger.card);
|
var num=get.cardNameLength(trigger.card);
|
||||||
|
|
|
@ -941,6 +941,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
limited:true,
|
limited:true,
|
||||||
skillAnimation:true,
|
skillAnimation:true,
|
||||||
animationColor:'orange',
|
animationColor:'orange',
|
||||||
|
locked:false,
|
||||||
chooseButton:{
|
chooseButton:{
|
||||||
dialog:function(event,player){
|
dialog:function(event,player){
|
||||||
var list=[];
|
var list=[];
|
||||||
|
@ -1320,6 +1321,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
return (player.countCards('h')==0)^player.hasSkill('jsrgmanjuan_in');
|
return (player.countCards('h')==0)^player.hasSkill('jsrgmanjuan_in');
|
||||||
},
|
},
|
||||||
forced:true,
|
forced:true,
|
||||||
|
locked:false,
|
||||||
firstDo:true,
|
firstDo:true,
|
||||||
silent:true,
|
silent:true,
|
||||||
content:function(){
|
content:function(){
|
||||||
|
@ -1710,6 +1712,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
},
|
},
|
||||||
jsrgrihui:{
|
jsrgrihui:{
|
||||||
audio:'dcrihui',
|
audio:'dcrihui',
|
||||||
|
locked:false,
|
||||||
trigger:{source:'damageSource'},
|
trigger:{source:'damageSource'},
|
||||||
filter:function(event,player){
|
filter:function(event,player){
|
||||||
return event.getParent().type=='card'&&event.card&&event.card.name=='sha'&&game.hasPlayer(current=>{
|
return event.getParent().type=='card'&&event.card&&event.card.name=='sha'&&game.hasPlayer(current=>{
|
||||||
|
@ -2444,6 +2447,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
audio:2,
|
audio:2,
|
||||||
trigger:{player:'useCard'},
|
trigger:{player:'useCard'},
|
||||||
forced:true,
|
forced:true,
|
||||||
|
locked:false,
|
||||||
filter:function(event,player){
|
filter:function(event,player){
|
||||||
if(player.group!='shu') return false;
|
if(player.group!='shu') return false;
|
||||||
return game.hasPlayer(current=>{
|
return game.hasPlayer(current=>{
|
||||||
|
@ -3792,6 +3796,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
sbpingjian:{
|
sbpingjian:{
|
||||||
trigger:{player:['useSkill','logSkillBegin']},
|
trigger:{player:['useSkill','logSkillBegin']},
|
||||||
forced:true,
|
forced:true,
|
||||||
|
locked:false,
|
||||||
filter:function(event,player){
|
filter:function(event,player){
|
||||||
var skill=event.sourceSkill||event.skill;
|
var skill=event.sourceSkill||event.skill;
|
||||||
return player.invisibleSkills.contains(skill)&&lib.skill.sbyingmen.getSkills(player.getStorage('sbyingmen'),player).contains(skill);
|
return player.invisibleSkills.contains(skill)&&lib.skill.sbyingmen.getSkills(player.getStorage('sbyingmen'),player).contains(skill);
|
||||||
|
|
|
@ -8680,6 +8680,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
if(player.getEquips(3).length>0||player.getEquips(4).length>0) return Infinity;
|
if(player.getEquips(3).length>0||player.getEquips(4).length>0) return Infinity;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
locked:false,
|
||||||
enable:'phaseUse',
|
enable:'phaseUse',
|
||||||
usable:1,
|
usable:1,
|
||||||
position:'he',
|
position:'he',
|
||||||
|
|
|
@ -61,6 +61,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
if(get.type2(card)=='trick') return true;
|
if(get.type2(card)=='trick') return true;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
locked:false,
|
||||||
getLimit:3,
|
getLimit:3,
|
||||||
audio:2,
|
audio:2,
|
||||||
enable:'phaseUse',
|
enable:'phaseUse',
|
||||||
|
@ -4446,6 +4447,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
sbzhiheng:{
|
sbzhiheng:{
|
||||||
audio:2,
|
audio:2,
|
||||||
audioname:['shen_caopi'],
|
audioname:['shen_caopi'],
|
||||||
|
locked:false,
|
||||||
mod:{
|
mod:{
|
||||||
aiOrder:function(player,card,num){
|
aiOrder:function(player,card,num){
|
||||||
if(num<=0||get.itemtype(card)!=='card'||get.type(card)!=='equip') return num;
|
if(num<=0||get.itemtype(card)!=='card'||get.type(card)!=='equip') return num;
|
||||||
|
|
|
@ -1260,7 +1260,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
spxizhan:{
|
spxizhan:{
|
||||||
audio:4,
|
audio:4,
|
||||||
group:'spxizhan_effect',
|
group:'spxizhan_effect',
|
||||||
locked:true,
|
locked:false,
|
||||||
subSkill:{
|
subSkill:{
|
||||||
spfangzong:{charlotte:true},
|
spfangzong:{charlotte:true},
|
||||||
effect:{
|
effect:{
|
||||||
|
@ -2134,7 +2134,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
rechuhai:{
|
rechuhai:{
|
||||||
audio:'chuhai',
|
audio:'chuhai',
|
||||||
dutySkill:true,
|
dutySkill:true,
|
||||||
locked:true,
|
locked:false,
|
||||||
group:['rechuhai_add','rechuhai_achieve','rechuhai_fail','rechuhai_chuhai'],
|
group:['rechuhai_add','rechuhai_achieve','rechuhai_fail','rechuhai_chuhai'],
|
||||||
derivation:'zhangming',
|
derivation:'zhangming',
|
||||||
subSkill:{
|
subSkill:{
|
||||||
|
@ -2715,6 +2715,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
trigger:{player:'useCardAfter'},
|
trigger:{player:'useCardAfter'},
|
||||||
dutySkill:true,
|
dutySkill:true,
|
||||||
forced:true,
|
forced:true,
|
||||||
|
locked:false,
|
||||||
direct:true,
|
direct:true,
|
||||||
filter:function(event,player){
|
filter:function(event,player){
|
||||||
if(!player.storage.xingqi||!player.storage.xingqi.length) return false;
|
if(!player.storage.xingqi||!player.storage.xingqi.length) return false;
|
||||||
|
@ -3151,7 +3152,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
qingyu:{
|
qingyu:{
|
||||||
audio:3,
|
audio:3,
|
||||||
dutySkill:true,
|
dutySkill:true,
|
||||||
locked:true,
|
locked:false,
|
||||||
group:['qingyu_achieve','qingyu_fail','qingyu_defend'],
|
group:['qingyu_achieve','qingyu_fail','qingyu_defend'],
|
||||||
subSkill:{
|
subSkill:{
|
||||||
defend:{
|
defend:{
|
||||||
|
|
|
@ -13082,6 +13082,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
},
|
},
|
||||||
spweiwu:{
|
spweiwu:{
|
||||||
audio:2,
|
audio:2,
|
||||||
|
locked:false,
|
||||||
enable:'phaseUse',
|
enable:'phaseUse',
|
||||||
usable:1,
|
usable:1,
|
||||||
viewAs:{
|
viewAs:{
|
||||||
|
|
|
@ -531,6 +531,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
audio: 'juexiang',
|
audio: 'juexiang',
|
||||||
trigger: { player: 'die' },
|
trigger: { player: 'die' },
|
||||||
forced: true,
|
forced: true,
|
||||||
|
locked:false,
|
||||||
forceDie: true,
|
forceDie: true,
|
||||||
skillAnimation: true,
|
skillAnimation: true,
|
||||||
animationColor: 'water',
|
animationColor: 'water',
|
||||||
|
@ -627,6 +628,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
audio:2,
|
audio:2,
|
||||||
|
locked:false,
|
||||||
trigger:{player:'phaseUseBegin'},
|
trigger:{player:'phaseUseBegin'},
|
||||||
filter:function(event,player){
|
filter:function(event,player){
|
||||||
return player.countCards('h');
|
return player.countCards('h');
|
||||||
|
|
|
@ -457,6 +457,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
return event.hasNature();
|
return event.hasNature();
|
||||||
},
|
},
|
||||||
forced:true,
|
forced:true,
|
||||||
|
locked:false,
|
||||||
content:function(){
|
content:function(){
|
||||||
'step 0'
|
'step 0'
|
||||||
if(event.triggername=='damageBegin2'){
|
if(event.triggername=='damageBegin2'){
|
||||||
|
@ -1380,6 +1381,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
if (get.tag(card, 'damage') > 0 && target.storage.twchongwangx.contains(player)) return false;
|
if (get.tag(card, 'damage') > 0 && target.storage.twchongwangx.contains(player)) return false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
locked:false,
|
||||||
unique: true,
|
unique: true,
|
||||||
onremove: true,
|
onremove: true,
|
||||||
global: 'twchongwang_global',
|
global: 'twchongwang_global',
|
||||||
|
@ -3558,6 +3560,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
trigger:{player:'useCardAfter'},
|
trigger:{player:'useCardAfter'},
|
||||||
group:['twmibei_mark','twmibei_fail'],
|
group:['twmibei_mark','twmibei_fail'],
|
||||||
forced:true,
|
forced:true,
|
||||||
|
locked:false,
|
||||||
direct:true,
|
direct:true,
|
||||||
dutySkill:true,
|
dutySkill:true,
|
||||||
derivation:'twmouli',
|
derivation:'twmouli',
|
||||||
|
@ -7659,6 +7662,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
return targets.length>=2;
|
return targets.length>=2;
|
||||||
},
|
},
|
||||||
forced:true,
|
forced:true,
|
||||||
|
locked:false,
|
||||||
dutySkill:true,
|
dutySkill:true,
|
||||||
skillAnimation:true,
|
skillAnimation:true,
|
||||||
animationColor:'wood',
|
animationColor:'wood',
|
||||||
|
@ -14584,7 +14588,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
},
|
},
|
||||||
dynamicTranslate:{
|
dynamicTranslate:{
|
||||||
twfeifu:function(player){
|
twfeifu:function(player){
|
||||||
var str='转换技。';
|
var str='锁定技,转换技。';
|
||||||
if(!player.storage.twfeifu) str+='<span class="bluetext">';
|
if(!player.storage.twfeifu) str+='<span class="bluetext">';
|
||||||
str+='阴:当你成为【杀】的唯一目标后;';
|
str+='阴:当你成为【杀】的唯一目标后;';
|
||||||
if(!player.storage.twfeifu) str+='</span>';
|
if(!player.storage.twfeifu) str+='</span>';
|
||||||
|
|
|
@ -924,6 +924,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
return !player.hasMark('dccaixia_clear');
|
return !player.hasMark('dccaixia_clear');
|
||||||
},
|
},
|
||||||
direct:true,
|
direct:true,
|
||||||
|
locked:false,
|
||||||
content:function(){
|
content:function(){
|
||||||
'step 0'
|
'step 0'
|
||||||
var choices=Array.from({length:Math.min(5,game.players.length+game.dead.length)}).map((_,i)=>get.cnNumber(i+1,true));
|
var choices=Array.from({length:Math.min(5,game.players.length+game.dead.length)}).map((_,i)=>get.cnNumber(i+1,true));
|
||||||
|
@ -2168,6 +2169,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
direct:true,
|
direct:true,
|
||||||
|
locked:false,
|
||||||
content:function(){
|
content:function(){
|
||||||
'step 0'
|
'step 0'
|
||||||
var targets=trigger.targets.filter(target=>{
|
var targets=trigger.targets.filter(target=>{
|
||||||
|
|
|
@ -11807,6 +11807,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
miji:{
|
miji:{
|
||||||
audio:2,
|
audio:2,
|
||||||
audioname:['re_wangyi'],
|
audioname:['re_wangyi'],
|
||||||
|
locked:false,
|
||||||
mod:{
|
mod:{
|
||||||
aiOrder:function(player,card,num){
|
aiOrder:function(player,card,num){
|
||||||
if(num>0&&_status.event&&_status.event.type==='phase'&&get.tag(card,'recover')){
|
if(num>0&&_status.event&&_status.event.type==='phase'&&get.tag(card,'recover')){
|
||||||
|
|
|
@ -9080,6 +9080,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
locked:false,
|
||||||
audio:"duanliang1",
|
audio:"duanliang1",
|
||||||
enable:"chooseToUse",
|
enable:"chooseToUse",
|
||||||
filterCard:function(card){
|
filterCard:function(card){
|
||||||
|
@ -9738,6 +9739,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
return player.hp<=1;
|
return player.hp<=1;
|
||||||
},
|
},
|
||||||
forced:true,
|
forced:true,
|
||||||
|
locked:false,
|
||||||
//priority:3,
|
//priority:3,
|
||||||
content:function(){
|
content:function(){
|
||||||
player.addTempSkill('baka_yingzi','phaseAfter');
|
player.addTempSkill('baka_yingzi','phaseAfter');
|
||||||
|
@ -10878,6 +10880,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
unique:true,
|
unique:true,
|
||||||
forceunique:true,
|
forceunique:true,
|
||||||
lordSkill:true,
|
lordSkill:true,
|
||||||
|
locked:false,
|
||||||
audio:2,
|
audio:2,
|
||||||
derivation:'yuanjiangfenghuotu',
|
derivation:'yuanjiangfenghuotu',
|
||||||
mark:true,
|
mark:true,
|
||||||
|
|
Loading…
Reference in New Issue