v1.9.89.3(part1)

This commit is contained in:
Spmario233 2019-07-13 18:29:59 +08:00 committed by GitHub
parent 0524549fbf
commit b22bdec632
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 20 deletions

View File

@ -311,7 +311,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.chooseControlList([
'移去一枚【暴怒】标记',
'失去一点体力'
]).set('ai',function(event,player){
],true).set('ai',function(event,player){
if(player.storage.baonu>6) return 0;
if(player.hp+player.num('h','tao')>3) return 1;
return 0;
@ -1945,27 +1945,27 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
"nzry_jieying":{
audio:2,
init:function(player){
if(!player.isLinked()){
player.link();
player.logSkill('nzry_jieying');
};
ai:{
effect:{
target:function(card){
if(card.name=='tiesuo') return 'zeroplayertarget';
},
},
},
group:["nzry_jieying_1","nzry_jieying_2"],
subSkill:{
'1':{
audio:2,
trigger:{
player:'linkAfter'
player:'linkAfter',
global:'gameDrawAfter',
},
forced:true,
filter:function (event,player){
return !player.isLinked();
},
content:function(){
setTimeout(function(){
if(!player.isLinked()) player.link();
},1200);
if(!player.isLinked()) player.link();
},
},
'2':{

View File

@ -272,7 +272,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(get.itemtype(trigger.cards)=='cards'&&get.position(trigger.cards[0])=='d'){
player.gain(trigger.cards,"gain2");
}
player.draw();
player.draw('nodelay');
},
ai:{
maixie:true,

View File

@ -2334,7 +2334,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return event.getParent(2).name!='zishu_draw';
},
content:function(){
player.draw(false);
player.draw('nodelay');
}
}
},

View File

@ -2623,7 +2623,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return event.getParent().name=='draw'&&event.getParent(2).name!='xinfu_zhanji';
},
content:function (){
player.draw(false);
player.draw('nodelay');
},
},
"xinfu_songsang":{

View File

@ -5259,7 +5259,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
event.card=card;
player.$throw(card,1000);
game.log(player,'将',card,'置于牌堆顶');
event.result.card={name:event.result.card.name};
event.result.card={name:event.result.card.name,nature:event.result.card.nature};
event.result.cards=[];
player.lose(card);
'step 1'
@ -8163,10 +8163,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return player.countCards('h')>0
},
chooseButton:{
dialog:function(){
var list=['taoyuan','wugu','juedou','huogong','jiedao','tiesuo','guohe','shunshou','wuzhong','wanjian','nanman'];
for(var i=0;i<list.length;i++){
list[i]=['锦囊','',list[i]];
dialog:function(player){
var list=[];
for(var i=0;i<lib.inpile.length;i++){
if(get.type(lib.inpile[i])=='trick') list.push(['锦囊','',lib.inpile[i]]);
}
return ui.create.dialog(get.translation('qice'),[list,'vcard']);
},
@ -8909,7 +8909,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
trigger:{player:'phaseBegin'},
direct:true,
init:function(player){
player.storage.xiansi=[];
if(!player.storage.xiansi) player.storage.xiansi=[];
},
content:function(){
"step 0"
@ -8969,7 +8969,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
filter:function(event,player){
var players=game.filterPlayer();
for(var i=0;i<players.length;i++){
if(players[i].storage.xiansi){
if(players[i].hasSkill('xiansi')){
return players[i].storage.xiansi.length>1&&player.canUse('sha',players[i],true,true);
}
}