修复夏侯氏【燕语】无法执行让男性角色摸两张牌效果的bug

This commit is contained in:
mengxinzxz 2023-09-30 22:05:53 +08:00 committed by GitHub
parent f2e682f071
commit e0eac8a824
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -9547,13 +9547,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
yanyu2:{
trigger:{player:'phaseUseEnd'},
direct:true,
filter:function(event,player){
return player.getHistory('lose',function(evt){
var evt2=evt.getParent();
return evt2.name=='useSkill'&&evt2.skill=='yanyu'&&evt.getParent(3)==event;
return player.getHistory('useSkill',function(evt){
return evt.event.getParent('phaseUse')==event&&evt.skill=='yanyu';
}).length>=2;
},
direct:true,
content:function(){
'step 0'
player.chooseTarget(get.prompt('yanyu'),'令一名男性角色摸两张牌',function(card,player,target){