修复许攸【恃才】ai弹窗bug

This commit is contained in:
mengxinzxz 2023-09-19 10:09:23 +08:00 committed by GitHub
parent 7b6ade5354
commit bf3f13f64a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 13 deletions

View File

@ -2162,18 +2162,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(!event.cards.filterInD('oe').length) return false;
return player.getHistory('useCard',evt=>get.type2(evt.card)==get.type2(event.card)).indexOf(event)==0;
},
check:function(event,player){
if(get.type(event.card)=='equip'){
if(get.subtype(event.card)=='equip6') return true;
if(get.equipResult(player,event.target,event.card.name)<=0) return true;
var eff1=player.getUseValue(event.card);
var subtype=get.subtype(event.card);
return player.countCards('h',function(card){
return get.subtype(card)==subtype&&player.getUseValue(card)>=eff1;
})>0;
}
return true;
},
prompt:function(event,player){
return get.prompt('nzry_shicai')+'(将'+get.translation(event.cards.filterInD('oe'))+'置于牌堆顶)';
},
@ -2249,7 +2237,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
target:function(card,player,target){
if(player==target&&get.type(card)=='equip'&&!player.getHistory('useCard',function(evt){
return get.type(evt.card)=='equip';
}).length==0) return [1,3];
}).length) return [1,3];
},
},
},