优化【短兵】ai

修复filter只检测手牌的bug
This commit is contained in:
157 2023-10-09 16:04:20 +08:00 committed by GitHub
parent 9d5b8192dc
commit ac3d772bc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -3304,14 +3304,14 @@ game.import('character',function(lib,game,ui,get,ai,_status){
dddduanbing:{ dddduanbing:{
enable:'phaseUse', enable:'phaseUse',
filter:function(event,player){ filter:function(event,player){
return player.canAddJudge('bingliang')&&player.hasCard((card)=>lib.skill['dddduanbing'].filterCard(card,player),'h'); return player.canAddJudge('bingliang')&&player.hasCard((card)=>lib.skill['dddduanbing'].filterCard(card,player),'he');
}, },
filterCard:function(card,player){ filterCard:function(card,player){
if(get.color(card)!='black'||get.type2(card)=='trick') return false; if(get.color(card)!='black'||get.type2(card)=='trick') return false;
return player.canAddJudge(get.autoViewAs({name:'bingliang'},[card])); return player.canAddJudge(get.autoViewAs({name:'bingliang'},[card]));
}, },
check:function(card){ check:function(card){
return 6-get.value(card); return 8.2-get.value(card);
}, },
discard:false, discard:false,
lose:false, lose:false,