优化【谗逆】ai
This commit is contained in:
parent
1e109f20cc
commit
32c56beae4
|
@ -2814,9 +2814,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
filterCard:true,
|
filterCard:true,
|
||||||
selectCard:[1,Infinity],
|
selectCard:[1,Infinity],
|
||||||
check:function(card){
|
check:function(card){
|
||||||
var player=_status.event.player;
|
let player=_status.event.player,num=player.hasSkill('nifu')?15:8;
|
||||||
if(ui.selected.cards.length<=Math.max(1,player.needsToDiscard(),player.countCards('h')-4)) return 6-get.value(card);
|
if(ui.selected.cards.length<=Math.max(1,player.needsToDiscard(),player.countCards('h')-4)) return num-get.value(card);
|
||||||
return 4-get.value(card);
|
return num/2-get.value(card);
|
||||||
},
|
},
|
||||||
position:'h',
|
position:'h',
|
||||||
discard:false,
|
discard:false,
|
||||||
|
@ -2870,7 +2870,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
viewAs:{name:'juedou'},
|
viewAs:{name:'juedou'},
|
||||||
position:'h',
|
position:'h',
|
||||||
filterTarget:lib.filter.targetEnabled,
|
filterTarget:lib.filter.targetEnabled,
|
||||||
check:(card)=>get.name(card)=='sha'?7:5.5-get.value(card),
|
check:(card)=>get.name(card)=='sha'?0:5.5-get.value(card);
|
||||||
log:false,
|
log:false,
|
||||||
precontent:function(){
|
precontent:function(){
|
||||||
delete event.result.skill;
|
delete event.result.skill;
|
||||||
|
|
Loading…
Reference in New Issue