This commit is contained in:
parent
95b4e8458a
commit
6d8b3aac56
12
card/sp.js
12
card/sp.js
|
@ -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:{
|
||||
|
|
|
@ -219,6 +219,7 @@ card.yunchou={
|
|||
filterTarget:function(card,player,target){
|
||||
return target!=player;
|
||||
},
|
||||
multitarget:true,
|
||||
content:function(){
|
||||
'step 0'
|
||||
if(cards&&cards.length){
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue