界孙坚【武烈】ai添加

This commit is contained in:
mengxinzxz 2023-09-07 23:38:34 +08:00 committed by GitHub
parent 3398d84f56
commit 9edc60fd06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -8169,7 +8169,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
content:function(){
'step 0'
player.chooseTarget([1,player.hp],get.prompt2('wulie'),lib.filter.notMe).set('ai',function(){return 0});
player.chooseTarget([1,player.hp],get.prompt2('wulie'),lib.filter.notMe).set('ai',function(target){
var player=_status.event.player;
if(player.hasUnknown()) return 0;
if(player.hp-ui.selected.targets.length>1+player.countCards('hs',card=>player.canSaveCard(card,player))) return get.attitude(player,target);
return 0;
});
'step 1'
if(result.bool){
var targets=result.targets.sortBySeat();