郭图【诿解】hiddenCard优化

This commit is contained in:
mengxinzxz 2024-02-27 19:40:16 +08:00
parent 6553e13589
commit 8fc7a2c27a
1 changed files with 1 additions and 1 deletions

View File

@ -885,7 +885,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
},
hiddenCard(player,name){
if(!lib.inpile.includes(name)) return false;
if(!lib.inpile.includes(name)||_status.currentPhase===player||player.isTempBanned('olweijie')) return false;
return get.type(name)=='basic'&&game.hasPlayer(target=>{
return get.distance(player,target)==1&&target.countCards('h');
});