This commit is contained in:
libccy 2017-04-02 22:13:33 +08:00
parent 95b4e8458a
commit 6d8b3aac56
4 changed files with 13 additions and 7 deletions

View File

@ -353,17 +353,19 @@ card.sp={
target.chooseToDiscard('弃置一张非基本牌(或取消并弃置两张牌)','he',function(card){
return get.type(card)!='basic';
}).set('ai',function(card){
if(_status.event.goon) return 7-get.value(card);
return 9-get.value(card);
}).set('goon',target.countCards('h',{type:'basic'})>2);
if(_status.event.goon) return 8-get.value(card);
return 11-get.value(card);
}).set('goon',target.countCards('h',function(card){
return get.value(card,target,'raw')<8;
})>1);
event.more=true;
}
else{
target.chooseToDiscard('he',2,true);
target.chooseToDiscard('he',2,true).set('ai',get.disvalue2);
}
'step 2'
if(event.more&&!result.bool){
target.chooseToDiscard('he',2,true);
target.chooseToDiscard('he',2,true).set('ai',get.disvalue2);
}
},
ai:{

View File

@ -219,6 +219,7 @@ card.yunchou={
filterTarget:function(card,player,target){
return target!=player;
},
multitarget:true,
content:function(){
'step 0'
if(cards&&cards.length){

View File

@ -40659,6 +40659,9 @@
disvalue:function(card,player){
return -get.value(card,player);
},
disvalue2:function(card,player){
return -get.value(card,player,'raw');
},
skillthreaten:function(skill,player,target){
if(!lib.skill[skill]) return 1;
if(!lib.skill[skill].ai) return 1;

View File

@ -11,8 +11,8 @@ window.noname_update={
// 'game/source.js',
// 'game/asset.js',
// 'card/*',
// 'card/sp.js',
// 'card/yunchou.js',
'card/sp.js',
'card/yunchou.js',
// 'character/*',
// 'character/sp.js',
// 'mode/boss.js',