孙茹二技能bugfix

This commit is contained in:
mengxinzxz 2023-10-24 10:11:11 +08:00 committed by GitHub
parent ecba8d4dcc
commit b6d3af6bbb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 24 additions and 18 deletions

View File

@ -6473,6 +6473,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.choosePlayerCard(trigger.player,true,'h');
}
'step 1'
if(result.bool){
var card=result.cards[0];
event.card=card;
var str=get.translation(player);
@ -6487,11 +6488,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(target.isDamaged()&&target.isMinHp&&get.recoverEffect(target,player,player)>0) return 4*att;
return att;
});
}
else event.finish();
'step 2'
if(result.bool){
var target=result.targets[0];
event.target=target;
player.line(target,'green');
target.gain(card,trigger.player,'give').giver=player;
}
else event.finish();
'step 3'
if(target.isMinHp()) target.recover();
},