界孙坚【武烈】ai添加
This commit is contained in:
parent
3398d84f56
commit
9edc60fd06
|
@ -8169,7 +8169,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
},
|
},
|
||||||
content:function(){
|
content:function(){
|
||||||
'step 0'
|
'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'
|
'step 1'
|
||||||
if(result.bool){
|
if(result.bool){
|
||||||
var targets=result.targets.sortBySeat();
|
var targets=result.targets.sortBySeat();
|
||||||
|
|
Loading…
Reference in New Issue