修复twyujue的一个bug

This commit is contained in:
copcap 2023-10-23 16:18:35 +08:00
parent 487c8497c3
commit a948b27753
No known key found for this signature in database
GPG Key ID: 9AE7B8AF097EC926
1 changed files with 2 additions and 1 deletions

View File

@ -11522,7 +11522,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
var num=2;
if(target.hasSkill('twyujue_effect0')) num--;
if(target.hasSkill('twyujue_effect1')) num--;
num=Math.min(num,trigger.getl(target).cards2.length);
var cards=trigger.getg(player);
num=Math.min(num,trigger.getl(target).cards2.filter(i=>cards.includes(i)).length);
if(num>0) event.count=num;
else if(targets.length>0) event.redo();
else event.finish();