修复颜良独往指定有部分不可当决斗用的牌的角色时有概率被AI中断的bug

This commit is contained in:
copcap 2024-04-09 13:33:59 +08:00
parent 72cbdbbd2e
commit 6b919a56b2
No known key found for this signature in database
GPG Key ID: 30E7AB6699451AEE
1 changed files with 4 additions and 1 deletions

View File

@ -369,7 +369,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
backup:{
viewAs:{name:'juedou'},
position:'he',
filterCard:true,
filterCard(card,player){
const cardx=get.autoViewAs({name:'juedou'},[card]);
return lib.filter.targetEnabledx(cardx,player,get.event('sourcex'));
},
check(card){
if(get.name(card)=='sha') return 5-get.value(card);
return 8-get.value(card);