skill={
audio:"ext:无名扩展02:2",
preHidden:true,
audioname:["sp_lvmeng","re_sunben","re_sunce"],
trigger:{
player:"useCardToPlayered",
target:"useCardToTargeted",
},
filter:function(event,player){
return (get.name(event.card)=='sha');
},
frequent:true,
content:function(){
'step 0'
if(trigger.target==player){
if(!trigger.player.countCards('h')){
event.finish();
};
} else {
if(!trigger.target.countCards('h')){
event.finish();
};
};
'step 1'
if(trigger.target==player){
var target=trigger.player;
} else {
var target=trigger.target;
};
var cards=target.getCards('h');
player.chooseButton(2,[
'快切',
cards,
[['用此牌'],'tdnodes'],
]).set('filterButton',function(button){
var type=typeof button.link;
if(ui.selected.buttons.length&&type==typeof ui.selected.buttons[0].link) return false;
return type=='string'||get.color(button.link)=='red'||get.color(button.link)=='black';
});
'step 2'
if(result.bool){
if(typeof result.links[0]!='string') result.links.reverse();
var card=result.links[1],choice=result.links[0];
player.chooseUseTarget(card);
}
},
ai:{
order:1,
result:{
player:function(player){
return 12;
},
},
threaten:1.2,
},
}
audio:"ext:无名扩展02:2",
preHidden:true,
audioname:["sp_lvmeng","re_sunben","re_sunce"],
trigger:{
player:"useCardToPlayered",
target:"useCardToTargeted",
},
filter:function(event,player){
return (get.name(event.card)=='sha');
},
frequent:true,
content:function(){
'step 0'
if(trigger.target==player){
if(!trigger.player.countCards('h')){
event.finish();
};
} else {
if(!trigger.target.countCards('h')){
event.finish();
};
};
'step 1'
if(trigger.target==player){
var target=trigger.player;
} else {
var target=trigger.target;
};
var cards=target.getCards('h');
player.chooseButton(2,[
'快切',
cards,
[['用此牌'],'tdnodes'],
]).set('filterButton',function(button){
var type=typeof button.link;
if(ui.selected.buttons.length&&type==typeof ui.selected.buttons[0].link) return false;
return type=='string'||get.color(button.link)=='red'||get.color(button.link)=='black';
});
'step 2'
if(result.bool){
if(typeof result.links[0]!='string') result.links.reverse();
var card=result.links[1],choice=result.links[0];
player.chooseUseTarget(card);
}
},
ai:{
order:1,
result:{
player:function(player){
return 12;
},
},
threaten:1.2,
},
}