This commit is contained in:
parent
9897a28359
commit
8a1d5eb07b
|
@ -1473,7 +1473,7 @@ card.swd={
|
||||||
useful:[7,2],
|
useful:[7,2],
|
||||||
value:[7,2],
|
value:[7,2],
|
||||||
},
|
},
|
||||||
order:7,
|
order:2.2,
|
||||||
result:{
|
result:{
|
||||||
target:2
|
target:2
|
||||||
},
|
},
|
||||||
|
|
|
@ -459,7 +459,7 @@ card.yunchou={
|
||||||
if(target.isLowestHp()) target.recover();
|
if(target.isLowestHp()) target.recover();
|
||||||
},
|
},
|
||||||
ai:{
|
ai:{
|
||||||
order:2,
|
order:2.5,
|
||||||
value:6,
|
value:6,
|
||||||
result:{
|
result:{
|
||||||
target:function(player,target){
|
target:function(player,target){
|
||||||
|
|
|
@ -228,6 +228,7 @@ window.characterRank={
|
||||||
],
|
],
|
||||||
bp:[
|
bp:[
|
||||||
'yanbaihu',
|
'yanbaihu',
|
||||||
|
'dongyun',
|
||||||
'sunziliufang',
|
'sunziliufang',
|
||||||
'shen_zhouyu',
|
'shen_zhouyu',
|
||||||
'yj_jushou',
|
'yj_jushou',
|
||||||
|
@ -368,7 +369,6 @@ window.characterRank={
|
||||||
'hs_lrexxar',
|
'hs_lrexxar',
|
||||||
'huatuo',
|
'huatuo',
|
||||||
'sunhao',
|
'sunhao',
|
||||||
'dongyun',
|
|
||||||
'swd_jiting',
|
'swd_jiting',
|
||||||
'hs_nozdormu',
|
'hs_nozdormu',
|
||||||
],
|
],
|
||||||
|
|
|
@ -1968,7 +1968,7 @@ character.shenhua={
|
||||||
}
|
}
|
||||||
if(ai.get.attitude(player,target)>0&&!hastarget) return;
|
if(ai.get.attitude(player,target)>0&&!hastarget) return;
|
||||||
if(turnfriend||target.hp==target.maxHp) return [0.5,1];
|
if(turnfriend||target.hp==target.maxHp) return [0.5,1];
|
||||||
if(target.hp>1) return [1,1];
|
if(target.hp>1) return [1,0.5];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -377,28 +377,33 @@ character.sp={
|
||||||
}).set('ai',function(target){
|
}).set('ai',function(target){
|
||||||
var player=_status.event.player;
|
var player=_status.event.player;
|
||||||
var att=ai.get.attitude(player,target);
|
var att=ai.get.attitude(player,target);
|
||||||
if(att>0&&target.num('h')==target.hp-1){
|
var nh=target.num('h');
|
||||||
|
if(att>0){
|
||||||
|
if(nh==target.hp-1){
|
||||||
if(player==target) return att+1;
|
if(player==target) return att+1;
|
||||||
return att+2;
|
return att+2;
|
||||||
}
|
}
|
||||||
if(player==target&&player.needsToDiscard()) return att/3;
|
if(player==target&&player.needsToDiscard()) return att/3;
|
||||||
return att;
|
return att;
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
if(nh==target.hp+1) return -att;
|
||||||
|
if(nh==0) return 0;
|
||||||
|
return -att/2;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
'step 1'
|
'step 1'
|
||||||
if(result.bool){
|
if(result.bool){
|
||||||
player.logSkill('bingzheng',result.targets);
|
player.logSkill('bingzheng',result.targets);
|
||||||
event.target=result.targets[0];
|
event.target=result.targets[0];
|
||||||
if(event.target.num('h')){
|
if(event.target.num('h')){
|
||||||
event.target.chooseToDiscard('弃置一张手牌,或取消并摸一张牌').set('ai',function(card){
|
player.chooseControl(function(event,player){
|
||||||
if(_status.event.player==_status.event.getParent().player) return 0;
|
var target=event.target;
|
||||||
if(card.name=='du') return 0;
|
if(ai.get.attitude(player,target)<0) return 1;
|
||||||
if(_status.event.goon) return 6-ai.get.value(card);
|
if(target.num('h')==target.hp+1) return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}).set('goon',(
|
}).set('choiceList',['令'+get.translation(event.target)+'摸一张牌',
|
||||||
event.target.num('h')==event.target.hp+1&&
|
'令'+get.translation(event.target)+'弃置一张手牌']);
|
||||||
ai.get.attitude(event.target,player)>1&&
|
|
||||||
!player.needsToDiscard()&&player.num('h')<event.target.num('h')
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
event.directfalse=true;
|
event.directfalse=true;
|
||||||
|
@ -408,9 +413,12 @@ character.sp={
|
||||||
event.finish();
|
event.finish();
|
||||||
}
|
}
|
||||||
'step 2'
|
'step 2'
|
||||||
if(event.directfalse||!result.bool){
|
if(event.directfalse||result.index==0){
|
||||||
event.target.draw();
|
event.target.draw();
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
event.target.chooseToDiscard('h',true);
|
||||||
|
}
|
||||||
'step 3'
|
'step 3'
|
||||||
if(event.target.num('h')==event.target.hp){
|
if(event.target.num('h')==event.target.hp){
|
||||||
player.draw();
|
player.draw();
|
||||||
|
@ -427,7 +435,7 @@ character.sp={
|
||||||
if(_status.event.goon){
|
if(_status.event.goon){
|
||||||
return 10-ai.get.value(card);
|
return 10-ai.get.value(card);
|
||||||
}
|
}
|
||||||
return 0;
|
return -ai.get.value(card,_status.event.player,'raw');
|
||||||
});
|
});
|
||||||
if(ai.get.attitude(player,event.target)>1&&
|
if(ai.get.attitude(player,event.target)>1&&
|
||||||
player.num('h','shan')>1&&player.num('h')>event.target.num('h')){
|
player.num('h','shan')>1&&player.num('h')>event.target.num('h')){
|
||||||
|
|
Loading…
Reference in New Issue