修复用间许攸【择主】可能找不到主公的Bug

This commit is contained in:
Spmario233 2024-03-12 09:50:15 +08:00
parent c838ec7bf9
commit ea0292a74f
1 changed files with 1 additions and 0 deletions

View File

@ -3480,6 +3480,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
usable:1,
filter:function(event,player){
var zhu=get.mode()=='identity'?get.zhu(player):game.filterPlayer(i=>i.getSeatNum()==1)[0];
if(!zhu) return false;
return zhu.countGainableCards(player,zhu==player?'ej':'hej');
},
filterTarget:function(card,player,target){