乐綝【破锐】bug修复

修复乐綝【破锐】无法选择角色且未限制弃置牌的类型的bug
This commit is contained in:
mengxinzxz 2023-08-25 15:27:53 +08:00 committed by GitHub
parent 7899d8ffd2
commit 0d2f551fad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 11 deletions

View File

@ -613,7 +613,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return game.hasPlayer(current=>{ return game.hasPlayer(current=>{
if(current==player||current==event.player) return false; if(current==player||current==event.player) return false;
return current.hasHistory('lose',function(evt){ return current.hasHistory('lose',function(evt){
return evt.cards.length>0; return evt.cards2.length>0;
}); });
})&&(_status.connectMode||player.hasCard({type:'basic'},'h')); })&&(_status.connectMode||player.hasCard({type:'basic'},'h'));
}, },
@ -624,17 +624,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
prompt:get.prompt('dcporui'), prompt:get.prompt('dcporui'),
//prompt2:'弃置一张基本牌并选择一名本回合失去过牌的非当前回合的其他角色,你视为对其依次使用'+get.cnNumber(Math.max(0,player.hp)+1)+'张【杀】', //prompt2:'弃置一张基本牌并选择一名本回合失去过牌的非当前回合的其他角色,你视为对其依次使用'+get.cnNumber(Math.max(0,player.hp)+1)+'张【杀】',
prompt2:get.skillInfoTranslation('dcporui',player), prompt2:get.skillInfoTranslation('dcporui',player),
filterCard:lib.filter.cardDiscardable, filterCard:function(card,player){
selectCard:1, return get.type2(card)=='basic'&&lib.filter.cardDiscardable(card,player,'dcporui');
},
position:'he', position:'he',
list:game.filterPlayer(current=>{
if(current==player||current==trigger.player) return false;
return current.hasHistory('lose',function(evt){
return evt.cards.length>0;
});
}),
filterTarget:function(card,player,target){ filterTarget:function(card,player,target){
return _status.event.list.map(i=>i[0]).contains(target); return _status.event.list.contains(target);
}, },
ai1:function(card){ ai1:function(card){
return 7-get.value(card); return 7-get.value(card);
@ -644,7 +639,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return i[0]==target; return i[0]==target;
})[1]; })[1];
} }
}).set('list',game.filterPlayer(current=>{
if(current==player||current==trigger.player) return false;
return current.hasHistory('lose',function(evt){
return evt.cards2.length>0;
}); });
}));
'step 1' 'step 1'
if(result.bool){ if(result.bool){
var target=result.targets[0],cards=result.cards; var target=result.targets[0],cards=result.cards;