2016-03-22 06:45:57 +00:00
|
|
|
|
card.yunchou={
|
2015-04-29 03:25:17 +00:00
|
|
|
|
card:{
|
2017-02-05 08:48:28 +00:00
|
|
|
|
diaobingqianjiang:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
|
|
|
|
enable:true,
|
|
|
|
|
selectTarget:-1,
|
2017-03-31 09:51:14 +00:00
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return player==target||target.countCards('h');
|
|
|
|
|
},
|
2017-02-05 08:48:28 +00:00
|
|
|
|
contentBefore:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
game.delay();
|
|
|
|
|
player.draw();
|
|
|
|
|
"step 1"
|
2017-02-08 01:53:23 +00:00
|
|
|
|
if(get.is.versus()){
|
|
|
|
|
player.chooseControl('顺时针','逆时针',function(event,player){
|
|
|
|
|
if(player.next.side==player.side) return '逆时针';
|
|
|
|
|
return '顺时针';
|
|
|
|
|
}).set('prompt','选择'+get.translation(card)+'的结算方向');
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.goto(3);
|
|
|
|
|
}
|
|
|
|
|
"step 2"
|
|
|
|
|
if(result&&result.control=='顺时针'){
|
|
|
|
|
var evt=event.getParent();
|
|
|
|
|
evt.fixedSeat=true;
|
2017-03-02 13:11:10 +00:00
|
|
|
|
evt.targets.sortBySeat();
|
2017-02-08 01:53:23 +00:00
|
|
|
|
evt.targets.reverse();
|
|
|
|
|
if(evt.targets[evt.targets.length-1]==player){
|
|
|
|
|
evt.targets.unshift(evt.targets.pop());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
"step 3"
|
2017-02-05 08:48:28 +00:00
|
|
|
|
ui.clear();
|
2017-02-11 15:07:50 +00:00
|
|
|
|
var cards=get.cards(Math.ceil(game.countPlayer()/2));
|
2017-02-05 08:48:28 +00:00
|
|
|
|
var dialog=ui.create.dialog('调兵遣将',cards,true);
|
|
|
|
|
_status.dieClose.push(dialog);
|
|
|
|
|
dialog.videoId=lib.status.videoId++;
|
|
|
|
|
game.addVideo('cardDialog',null,['调兵遣将',get.cardsInfo(cards),dialog.videoId]);
|
|
|
|
|
event.getParent().preResult=dialog.videoId;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
for(var i=0;i<ui.dialogs.length;i++){
|
|
|
|
|
if(ui.dialogs[i].videoId==event.preResult){
|
|
|
|
|
event.dialog=ui.dialogs[i];break;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-03-27 08:48:22 +00:00
|
|
|
|
if(!event.dialog||!target.countCards('h')){
|
2017-02-05 08:48:28 +00:00
|
|
|
|
event.finish();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
var minValue=20;
|
2017-03-27 08:48:22 +00:00
|
|
|
|
var hs=target.getCards('h');
|
2017-02-05 08:48:28 +00:00
|
|
|
|
for(var i=0;i<hs.length;i++){
|
2017-04-02 09:33:42 +00:00
|
|
|
|
minValue=Math.min(minValue,get.value(hs[i],target));
|
2017-02-05 08:48:28 +00:00
|
|
|
|
}
|
|
|
|
|
if(target.isUnderControl(true)){
|
|
|
|
|
event.dialog.setCaption('选择一张牌并用一张手牌替换之');
|
|
|
|
|
}
|
|
|
|
|
var next=target.chooseButton(function(button){
|
2017-04-02 09:33:42 +00:00
|
|
|
|
return get.value(button.link,_status.event.player)-minValue;
|
2017-02-05 08:48:28 +00:00
|
|
|
|
});
|
|
|
|
|
next.set('dialog',event.preResult);
|
|
|
|
|
next.set('closeDialog',false);
|
|
|
|
|
next.set('dialogdisplay',true);
|
|
|
|
|
"step 1"
|
|
|
|
|
event.dialog.setCaption('调兵遣将');
|
|
|
|
|
if(result.bool){
|
|
|
|
|
event.button=result.buttons[0];
|
|
|
|
|
target.chooseCard('用一张牌牌替换'+get.translation(result.links),true).ai=function(card){
|
2017-04-02 09:33:42 +00:00
|
|
|
|
return -get.value(card);
|
2017-02-05 08:48:28 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
2017-02-05 10:40:30 +00:00
|
|
|
|
target.popup('不换');
|
2017-02-05 08:48:28 +00:00
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
"step 2"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
target.lose(result.cards,ui.special);
|
|
|
|
|
target.$throw(result.cards);
|
|
|
|
|
|
|
|
|
|
game.log(target,'用',result.cards,'替换了',event.button.link);
|
|
|
|
|
target.gain(event.button.link);
|
|
|
|
|
target.$gain2(event.button.link);
|
|
|
|
|
event.dialog.buttons.remove(event.button);
|
|
|
|
|
event.dialog.buttons.push(ui.create.button(result.cards[0],'card',event.button.parentNode));
|
|
|
|
|
event.button.remove();
|
|
|
|
|
}
|
|
|
|
|
"step 3"
|
|
|
|
|
game.delay(2);
|
|
|
|
|
},
|
|
|
|
|
contentAfter:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
event.dialog=get.idDialog(event.preResult);
|
|
|
|
|
if(!event.dialog){
|
|
|
|
|
event.finish();
|
|
|
|
|
return;
|
|
|
|
|
}
|
2017-02-05 15:22:29 +00:00
|
|
|
|
var nextSeat=_status.currentPhase.next;
|
2017-04-02 09:33:42 +00:00
|
|
|
|
var att=get.attitude(player,nextSeat);
|
2017-02-05 08:48:28 +00:00
|
|
|
|
if(player.isUnderControl(true)&&!_status.auto){
|
|
|
|
|
event.dialog.setCaption('将任意张牌以任意顺序置于牌堆顶(先选择的在上)');
|
|
|
|
|
}
|
|
|
|
|
var next=player.chooseButton([1,event.dialog.buttons.length],event.dialog);
|
|
|
|
|
next.ai=function(button){
|
|
|
|
|
if(att>0){
|
2017-04-02 09:33:42 +00:00
|
|
|
|
return get.value(button.link,nextSeat)-5;
|
2017-02-05 08:48:28 +00:00
|
|
|
|
}
|
|
|
|
|
else{
|
2017-04-02 09:33:42 +00:00
|
|
|
|
return 5-get.value(button.link,nextSeat);
|
2017-02-05 08:48:28 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
next.set('closeDialog',false);
|
|
|
|
|
next.set('dialogdisplay',true);
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result&&result.bool&&result.links&&result.links.length){
|
|
|
|
|
for(var i=0;i<result.buttons.length;i++){
|
|
|
|
|
event.dialog.buttons.remove(result.buttons[i]);
|
|
|
|
|
}
|
|
|
|
|
var cards=result.links.slice(0);
|
|
|
|
|
while(cards.length){
|
|
|
|
|
ui.cardPile.insertBefore(cards.pop(),ui.cardPile.firstChild);
|
|
|
|
|
}
|
|
|
|
|
game.log(player,'将'+get.cnNumber(result.links.length)+'张牌置于牌堆顶');
|
|
|
|
|
}
|
|
|
|
|
for(var i=0;i<event.dialog.buttons.length;i++){
|
|
|
|
|
ui.discardPile.appendChild(event.dialog.buttons[i].link);
|
|
|
|
|
}
|
|
|
|
|
'step 2'
|
|
|
|
|
var dialog=event.dialog;
|
|
|
|
|
dialog.close();
|
|
|
|
|
_status.dieClose.remove(dialog);
|
|
|
|
|
game.addVideo('cardDialog',null,event.preResult);
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
wuxie:function(){
|
|
|
|
|
return 0;
|
|
|
|
|
},
|
|
|
|
|
basic:{
|
|
|
|
|
order:2,
|
|
|
|
|
useful:[3,1],
|
|
|
|
|
value:[5,1]
|
|
|
|
|
},
|
|
|
|
|
result:{
|
|
|
|
|
player:1,
|
|
|
|
|
target:function(player,target){
|
2017-03-27 08:48:22 +00:00
|
|
|
|
if(target.countCards('h')==0) return 0;
|
|
|
|
|
return (Math.sqrt(target.countCards('h'))-get.distance(player,target,'absolute')/game.countPlayer()/3)/2;
|
2017-02-05 08:48:28 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
loseCard:1,
|
|
|
|
|
multitarget:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2017-02-04 06:48:16 +00:00
|
|
|
|
caochuanjiejian:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
2017-02-04 09:54:43 +00:00
|
|
|
|
enable:true,
|
2017-02-04 08:02:35 +00:00
|
|
|
|
filterTarget:function(card,player,target){
|
2017-03-27 08:48:22 +00:00
|
|
|
|
return target.countCards('h')>0&&target!=player;
|
2017-02-04 08:02:35 +00:00
|
|
|
|
},
|
2017-02-04 09:54:43 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
2017-03-27 09:30:25 +00:00
|
|
|
|
if(target.countCards('h','sha')){
|
2017-02-05 05:41:36 +00:00
|
|
|
|
var name=get.translation(player.name);
|
2017-02-04 09:54:43 +00:00
|
|
|
|
target.chooseControl().set('prompt',get.translation('caochuanjiejian')).set('choiceList',[
|
2017-02-05 05:41:36 +00:00
|
|
|
|
'将手牌中的所有杀交给'+name+',并视为对'+name+'使用一张杀','展示手牌并令'+name+'弃置任意一张'
|
2017-02-04 09:54:43 +00:00
|
|
|
|
],function(){
|
2017-04-02 09:33:42 +00:00
|
|
|
|
if(get.effect(player,{name:'sha'},target,target)<0) return 1;
|
2017-03-27 09:30:25 +00:00
|
|
|
|
if(target.countCards('h','sha')>=3) return 1;
|
2017-02-04 09:54:43 +00:00
|
|
|
|
return 0;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.directfalse=true;
|
|
|
|
|
}
|
|
|
|
|
'step 1'
|
|
|
|
|
if(event.directfalse||result.control=='选项二'){
|
2017-03-27 08:48:22 +00:00
|
|
|
|
if(target.countCards('h')){
|
2017-02-05 05:41:36 +00:00
|
|
|
|
if(!player.isUnderControl(true)){
|
|
|
|
|
target.showHandcards();
|
|
|
|
|
}
|
|
|
|
|
else{
|
2017-03-27 08:48:22 +00:00
|
|
|
|
game.log(target,'展示了',target.getCards('h'));
|
2017-02-05 05:41:36 +00:00
|
|
|
|
}
|
|
|
|
|
player.discardPlayerCard(target,'h',true,'visible');
|
|
|
|
|
}
|
2017-02-04 09:54:43 +00:00
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
else{
|
2017-03-27 09:12:10 +00:00
|
|
|
|
var hs=target.getCards('h','sha');
|
2017-02-04 09:54:43 +00:00
|
|
|
|
player.gain(hs,target);
|
|
|
|
|
target.$give(hs,player);
|
|
|
|
|
}
|
|
|
|
|
'step 2'
|
|
|
|
|
target.useCard({name:'sha'},player);
|
|
|
|
|
},
|
2017-02-04 08:02:35 +00:00
|
|
|
|
ai:{
|
|
|
|
|
order:4,
|
2017-02-04 12:02:30 +00:00
|
|
|
|
value:[5,1],
|
2017-02-04 08:02:35 +00:00
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
if(player.hasShan()) return -1;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-02-04 06:48:16 +00:00
|
|
|
|
},
|
|
|
|
|
xiaolicangdao:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
2017-02-04 09:54:43 +00:00
|
|
|
|
enable:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target!=player;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
if(cards&&cards.length){
|
|
|
|
|
target.gain(cards,player);
|
|
|
|
|
target.$gain2(cards);
|
|
|
|
|
if(cards.length==1){
|
|
|
|
|
event.card1=cards[0];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
'step 1'
|
2017-03-27 08:48:22 +00:00
|
|
|
|
event.card2=target.getCards('h').randomGet();
|
2017-02-04 09:54:43 +00:00
|
|
|
|
if(event.card2){
|
|
|
|
|
target.discard(event.card2);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
'step 2'
|
|
|
|
|
if(event.card1&&event.card1.name==event.card2.name){
|
|
|
|
|
target.damage();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:6,
|
2017-02-17 02:23:52 +00:00
|
|
|
|
value:[3,1],
|
2017-02-04 09:54:43 +00:00
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
2017-03-27 08:48:22 +00:00
|
|
|
|
return -2/Math.sqrt(1+target.countCards('h'));
|
2017-02-04 09:54:43 +00:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
damage:1,
|
|
|
|
|
discard:1,
|
|
|
|
|
loseCard:1,
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-02-04 06:48:16 +00:00
|
|
|
|
},
|
|
|
|
|
geanguanhuo:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
2017-02-04 09:54:43 +00:00
|
|
|
|
enable:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
2017-03-27 08:48:22 +00:00
|
|
|
|
return target!=player&&target.countCards('h')>0;
|
2017-02-04 09:54:43 +00:00
|
|
|
|
},
|
2017-02-23 06:39:19 +00:00
|
|
|
|
chongzhu:function(){
|
|
|
|
|
return game.countPlayer()<=2;
|
|
|
|
|
},
|
2017-02-04 09:54:43 +00:00
|
|
|
|
multitarget:true,
|
|
|
|
|
multiline:true,
|
2017-02-09 10:51:08 +00:00
|
|
|
|
singleCard:true,
|
2017-02-04 09:54:43 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
2017-02-09 10:51:08 +00:00
|
|
|
|
target.chooseToCompare(event.addedTarget);
|
2017-02-04 09:54:43 +00:00
|
|
|
|
'step 1'
|
|
|
|
|
if(!result.tie){
|
|
|
|
|
if(result.bool){
|
2017-02-09 10:51:08 +00:00
|
|
|
|
target.gainPlayerCard(event.addedTarget,true);
|
|
|
|
|
target.line(targets[1]);
|
2017-02-04 09:54:43 +00:00
|
|
|
|
}
|
|
|
|
|
else{
|
2017-02-09 10:51:08 +00:00
|
|
|
|
event.addedTarget.gainPlayerCard(target,true);
|
|
|
|
|
event.addedTarget.line(target);
|
2017-02-04 09:54:43 +00:00
|
|
|
|
}
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
'step 2'
|
2017-02-09 10:51:08 +00:00
|
|
|
|
target.discardPlayerCard(player);
|
|
|
|
|
target.line(player);
|
2017-02-04 09:54:43 +00:00
|
|
|
|
},
|
|
|
|
|
selectTarget:2,
|
|
|
|
|
ai:{
|
|
|
|
|
order:5,
|
2017-02-04 12:02:30 +00:00
|
|
|
|
value:[7,1],
|
|
|
|
|
useful:[4,1],
|
2017-02-04 09:54:43 +00:00
|
|
|
|
result:{
|
|
|
|
|
target:-1,
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-02-04 06:48:16 +00:00
|
|
|
|
},
|
|
|
|
|
shezhanqunru:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
2017-02-05 15:22:29 +00:00
|
|
|
|
enable:true,
|
2017-02-04 09:54:43 +00:00
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target==player;
|
|
|
|
|
},
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
modTarget:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
2017-02-11 15:07:50 +00:00
|
|
|
|
var list=game.filterPlayer(function(current){
|
2017-03-27 08:48:22 +00:00
|
|
|
|
return current!=target&¤t.countCards('h');
|
2017-02-11 15:07:50 +00:00
|
|
|
|
});
|
2017-02-04 09:54:43 +00:00
|
|
|
|
if(!list.length){
|
2017-02-05 15:22:29 +00:00
|
|
|
|
target.draw(3);
|
2017-02-04 09:54:43 +00:00
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
else{
|
2017-03-02 13:11:10 +00:00
|
|
|
|
list.sortBySeat(target);
|
2017-02-04 09:54:43 +00:00
|
|
|
|
event.list=list;
|
|
|
|
|
event.torespond=[];
|
|
|
|
|
}
|
|
|
|
|
'step 1'
|
|
|
|
|
if(event.list.length){
|
|
|
|
|
event.current=event.list.shift();
|
2017-02-04 12:02:30 +00:00
|
|
|
|
event.current.chooseBool('是否响应'+get.translation(target)+'的舌战群儒?',function(event,player){
|
2017-04-02 09:33:42 +00:00
|
|
|
|
if(get.attitude(player,_status.event.source)>=0) return false;
|
2017-03-27 08:48:22 +00:00
|
|
|
|
var hs=player.getCards('h');
|
2017-02-17 02:23:52 +00:00
|
|
|
|
var dutag=player.hasSkillTag('nodu');
|
2017-02-04 09:54:43 +00:00
|
|
|
|
for(var i=0;i<hs.length;i++){
|
2017-04-02 09:33:42 +00:00
|
|
|
|
var value=get.value(hs[i],player);
|
2017-02-17 02:23:52 +00:00
|
|
|
|
if(hs[i].name=='du'&&dutag) continue;
|
2017-02-08 09:09:58 +00:00
|
|
|
|
if(value<0) return true;
|
2017-02-04 15:59:46 +00:00
|
|
|
|
if(!_status.event.hasTarget){
|
2017-02-04 09:54:43 +00:00
|
|
|
|
if(hs[i].number>=8&&value<=7) return true;
|
|
|
|
|
if(value<=3) return true;
|
|
|
|
|
}
|
2017-02-08 09:09:58 +00:00
|
|
|
|
else if(_status.event.hasTarget%2==1){
|
|
|
|
|
if(hs[i].number>=11&&value<=6) return true;
|
2017-02-04 09:54:43 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return false;
|
2017-02-08 09:09:58 +00:00
|
|
|
|
}).set('source',target).set('hasTarget',event.torespond.length);
|
2017-02-04 09:54:43 +00:00
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.goto(3);
|
|
|
|
|
}
|
|
|
|
|
'step 2'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
event.torespond.push(event.current);
|
|
|
|
|
event.current.line(target,'green');
|
|
|
|
|
event.current.popup('响应');
|
|
|
|
|
game.log(event.current,'响应了舌战群儒');
|
|
|
|
|
game.delayx(0.5);
|
|
|
|
|
}
|
|
|
|
|
event.goto(1);
|
|
|
|
|
'step 3'
|
|
|
|
|
if(event.torespond.length==0){
|
|
|
|
|
event.num=1;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.num=0;
|
2017-02-04 12:02:30 +00:00
|
|
|
|
target.chooseToCompare(event.torespond).callback=lib.card.shezhanqunru.callback;
|
2017-02-04 09:54:43 +00:00
|
|
|
|
}
|
|
|
|
|
'step 4'
|
|
|
|
|
if(event.num>0){
|
2017-02-04 12:02:30 +00:00
|
|
|
|
target.draw(3);
|
2017-02-04 09:54:43 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
callback:function(){
|
|
|
|
|
if(event.card1.number>event.card2.number){
|
|
|
|
|
event.parent.parent.num++;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.parent.parent.num--;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:8.5,
|
2017-02-04 12:02:30 +00:00
|
|
|
|
value:[6,1],
|
|
|
|
|
useful:[3,1],
|
2017-02-18 06:36:08 +00:00
|
|
|
|
tag:{
|
|
|
|
|
draw:1
|
|
|
|
|
},
|
2017-02-04 09:54:43 +00:00
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
2017-03-27 08:48:22 +00:00
|
|
|
|
var hs=target.getCards('h');
|
2017-02-04 09:54:43 +00:00
|
|
|
|
for(var i=0;i<hs.length;i++){
|
2017-04-02 09:33:42 +00:00
|
|
|
|
var value=get.value(hs[i]);
|
2017-02-04 09:54:43 +00:00
|
|
|
|
if(hs[i].number>=7&&value<=6) return 1;
|
|
|
|
|
if(value<=3) return 1;
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-02-04 06:48:16 +00:00
|
|
|
|
},
|
2017-02-04 05:07:19 +00:00
|
|
|
|
youdishenru:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
2017-02-04 12:02:30 +00:00
|
|
|
|
notarget:true,
|
2017-02-04 17:02:18 +00:00
|
|
|
|
wuxieable:true,
|
2017-02-04 12:02:30 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
2017-02-04 15:59:46 +00:00
|
|
|
|
var info=event.getParent(2).youdiinfo||event.getParent(3).youdiinfo;
|
|
|
|
|
if(!info){
|
2017-02-04 12:02:30 +00:00
|
|
|
|
event.finish();
|
|
|
|
|
return;
|
|
|
|
|
}
|
2017-02-04 15:59:46 +00:00
|
|
|
|
info.evt.untrigger();
|
|
|
|
|
info.evt.finish();
|
|
|
|
|
event.source=info.source;
|
2017-02-04 12:02:30 +00:00
|
|
|
|
event.source.storage.youdishenru=player;
|
|
|
|
|
event.source.addSkill('youdishenru');
|
|
|
|
|
'step 1'
|
2017-02-04 15:59:46 +00:00
|
|
|
|
var next=event.source.chooseToUse({name:'sha'},player,-1,'对'+get.translation(player)+'使用一张杀,或受到一点伤害');
|
|
|
|
|
next.ai2=function(){
|
|
|
|
|
return 1;
|
|
|
|
|
};
|
2017-02-04 12:02:30 +00:00
|
|
|
|
'step 2'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
if(event.source.storage.youdishenru){
|
|
|
|
|
event.goto(1);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.source.removeSkill('youdishenru');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.source.damage(player);
|
|
|
|
|
event.source.removeSkill('youdishenru');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
value:[5,1],
|
|
|
|
|
useful:[5,1],
|
|
|
|
|
order:1,
|
2017-02-04 17:02:18 +00:00
|
|
|
|
wuxie:function(target,card,player,current,state){
|
2017-04-02 09:33:42 +00:00
|
|
|
|
return -state*get.attitude(player,current);
|
2017-02-04 17:02:18 +00:00
|
|
|
|
},
|
2017-02-04 12:02:30 +00:00
|
|
|
|
result:{
|
|
|
|
|
player:function(player){
|
2017-02-04 15:59:46 +00:00
|
|
|
|
if(_status.event.parent.youdiinfo&&
|
2017-04-02 09:33:42 +00:00
|
|
|
|
get.attitude(player,_status.event.parent.youdiinfo.source)<=0){
|
2017-02-04 15:59:46 +00:00
|
|
|
|
return 1;
|
|
|
|
|
}
|
2017-02-04 12:02:30 +00:00
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-02-04 05:07:19 +00:00
|
|
|
|
},
|
2017-02-04 02:55:04 +00:00
|
|
|
|
wangmeizhike:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
|
|
|
|
enable:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
2017-02-06 16:24:42 +00:00
|
|
|
|
return (target.isLowestHp()&&target.isDamaged())||target.isFewestHandcard();
|
2017-02-04 02:55:04 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
2017-02-06 16:24:42 +00:00
|
|
|
|
if(target.isFewestHandcard()) target.draw(2);
|
2017-02-04 02:55:04 +00:00
|
|
|
|
'step 1'
|
2017-02-06 16:24:42 +00:00
|
|
|
|
if(target.isLowestHp()) target.recover();
|
2017-02-04 02:55:04 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
2017-02-20 16:42:06 +00:00
|
|
|
|
order:2.5,
|
2017-03-31 03:05:24 +00:00
|
|
|
|
value:7,
|
2017-02-04 02:55:04 +00:00
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
var num=0;
|
2017-04-02 09:33:42 +00:00
|
|
|
|
if(target.isLowestHp()&&get.recoverEffect(target)>0){
|
2017-02-04 02:55:04 +00:00
|
|
|
|
if(target.hp==1){
|
|
|
|
|
num+=3;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
num+=2;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-02-06 16:24:42 +00:00
|
|
|
|
if(target.isFewestHandcard()){
|
2017-02-04 02:55:04 +00:00
|
|
|
|
num+=2;
|
|
|
|
|
}
|
|
|
|
|
return num;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-03-22 06:45:57 +00:00
|
|
|
|
suolianjia:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:"equip",
|
|
|
|
|
subtype:"equip2",
|
|
|
|
|
skills:['suolianjia'],
|
|
|
|
|
onEquip:function(){
|
|
|
|
|
if(player.isLinked()==false) player.link();
|
|
|
|
|
},
|
|
|
|
|
onLose:function(){
|
|
|
|
|
if(player.isLinked()) player.link();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
equipValue:5
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
chenhuodajie:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
2017-01-15 02:06:03 +00:00
|
|
|
|
filterTarget:true,
|
2016-03-22 06:45:57 +00:00
|
|
|
|
content:function(){
|
2017-03-27 08:48:22 +00:00
|
|
|
|
if(target.countCards('he')){
|
2016-03-22 06:45:57 +00:00
|
|
|
|
player.gainPlayerCard('he',target,true);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:1,
|
|
|
|
|
useful:6,
|
|
|
|
|
value:6,
|
|
|
|
|
result:{
|
|
|
|
|
target:-1
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
loseCard:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
yihuajiemu:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
|
|
|
|
enable:true,
|
2017-02-09 10:51:08 +00:00
|
|
|
|
singleCard:true,
|
2016-03-22 06:45:57 +00:00
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
if(target.isMin()) return false;
|
|
|
|
|
if(ui.selected.targets.length){
|
2017-03-27 09:12:10 +00:00
|
|
|
|
return target.getCards('e',{subtype:'equip5'}).length==0;
|
2016-03-22 06:45:57 +00:00
|
|
|
|
}
|
|
|
|
|
else{
|
2017-03-27 09:12:10 +00:00
|
|
|
|
return target.getCards('e',{subtype:'equip5'}).length>0;
|
2016-03-22 06:45:57 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
selectTarget:2,
|
|
|
|
|
multitarget:true,
|
2017-02-10 09:48:40 +00:00
|
|
|
|
complexTarget:true,
|
2016-03-22 06:45:57 +00:00
|
|
|
|
content:function(){
|
2017-03-27 09:12:10 +00:00
|
|
|
|
if(target.getEquip(5)){
|
|
|
|
|
target.$give(target.getEquip(5),event.addedTarget);
|
|
|
|
|
event.addedTarget.equip(target.getEquip(5));
|
2016-03-22 06:45:57 +00:00
|
|
|
|
game.delay();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:1,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
2017-03-27 09:12:10 +00:00
|
|
|
|
if(target.getCards('e',{subtype:'equip5'}).length){
|
2017-04-02 09:33:42 +00:00
|
|
|
|
if(get.attitude(target,player)>0){
|
2016-03-22 06:45:57 +00:00
|
|
|
|
return -0.5;
|
|
|
|
|
}
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
loseCard:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
fudichouxin:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
|
|
|
|
enable:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
2017-03-27 08:48:22 +00:00
|
|
|
|
return player!=target&&target.countCards('h');
|
2016-03-22 06:45:57 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
2017-01-23 15:49:24 +00:00
|
|
|
|
player.chooseToCompare(target).set('preserve','win').clear=false;
|
2016-03-22 06:45:57 +00:00
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
player.gain([result.player,result.target]);
|
|
|
|
|
result.player.clone.moveDelete(player);
|
|
|
|
|
result.target.clone.moveDelete(player);
|
|
|
|
|
game.addVideo('gain2',player,get.cardsInfo([result.player,result.target]));
|
|
|
|
|
}
|
|
|
|
|
else if(!result.cancelled){
|
|
|
|
|
result.player.clone.delete();
|
|
|
|
|
result.target.clone.delete();
|
|
|
|
|
game.addVideo('deletenode',player,get.cardsInfo([result.player,result.target]));
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:4,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player){
|
2017-03-27 08:48:22 +00:00
|
|
|
|
if(player.countCards('h')<=1) return 0;
|
2016-03-22 06:45:57 +00:00
|
|
|
|
return -1;
|
|
|
|
|
},
|
|
|
|
|
player:function(player){
|
2017-03-27 08:48:22 +00:00
|
|
|
|
if(player.countCards('h')<=1) return 0;
|
2016-03-22 06:45:57 +00:00
|
|
|
|
return 0.5;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
loseCard:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
shuiyanqijun:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
|
|
|
|
enable:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
2017-03-27 08:48:22 +00:00
|
|
|
|
return target.countCards('e');
|
2016-03-22 06:45:57 +00:00
|
|
|
|
},
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
content:function(){
|
2017-03-27 08:48:22 +00:00
|
|
|
|
if(target.countCards('e')) target.chooseToDiscard('e',true);
|
2016-03-22 06:45:57 +00:00
|
|
|
|
},
|
2017-02-08 01:53:23 +00:00
|
|
|
|
reverseOrder:true,
|
2016-03-22 06:45:57 +00:00
|
|
|
|
ai:{
|
|
|
|
|
order:9,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
2017-03-27 08:48:22 +00:00
|
|
|
|
if(target.countCards('e')) return -1;
|
2016-03-22 06:45:57 +00:00
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
multitarget:1,
|
|
|
|
|
multineg:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
toulianghuanzhu:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
|
|
|
|
enable:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
2017-03-27 08:48:22 +00:00
|
|
|
|
return target.countCards('h')>0;
|
2016-03-22 06:45:57 +00:00
|
|
|
|
},
|
|
|
|
|
selectTarget:2,
|
|
|
|
|
multitarget:true,
|
2017-02-09 10:51:08 +00:00
|
|
|
|
singleCard:true,
|
2016-03-22 06:45:57 +00:00
|
|
|
|
targetprompt:['被拿牌','得牌'],
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
2017-02-09 10:51:08 +00:00
|
|
|
|
target.addTempSkill('toulianghuanzhu2','phaseAfter');
|
2017-03-27 08:48:22 +00:00
|
|
|
|
var hs=target.getCards('h');
|
2016-03-22 06:45:57 +00:00
|
|
|
|
event.num=Math.min(2,hs.length);
|
|
|
|
|
if(event.num){
|
2017-02-09 10:51:08 +00:00
|
|
|
|
var gived=hs.randomGets(event.num);
|
|
|
|
|
event.addedTarget.gain(gived,target);
|
|
|
|
|
target.$giveAuto(gived,event.addedTarget);
|
2016-03-22 06:45:57 +00:00
|
|
|
|
game.delay();
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
"step 1"
|
2017-03-27 08:48:22 +00:00
|
|
|
|
if(event.addedTarget.countCards('h')){
|
2017-02-09 10:51:08 +00:00
|
|
|
|
if(_status.auto&&event.addedTarget==game.me){
|
2016-03-22 06:45:57 +00:00
|
|
|
|
game.delay();
|
|
|
|
|
}
|
2017-04-02 09:33:42 +00:00
|
|
|
|
event.addedTarget.chooseCard(true,event.num,'选择'+get.cnNumber(event.num)+'张手牌还给'+get.translation(target)).ai=get.disvalue;
|
2016-03-22 06:45:57 +00:00
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
"step 2"
|
2017-02-09 10:51:08 +00:00
|
|
|
|
target.gain(result.cards,event.addedTarget);
|
|
|
|
|
event.addedTarget.$give(event.num,target);
|
2016-03-22 06:45:57 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:6.5,
|
|
|
|
|
tag:{
|
|
|
|
|
loseCard:1,
|
|
|
|
|
multitarget:1,
|
2017-02-23 10:40:32 +00:00
|
|
|
|
multineg:1,
|
|
|
|
|
norepeat:1,
|
2016-03-22 06:45:57 +00:00
|
|
|
|
},
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
if(ui.selected.targets.length){
|
2017-03-27 08:48:22 +00:00
|
|
|
|
if(target==player&&target.countCards('h')<=1) return 0;
|
2016-03-22 06:45:57 +00:00
|
|
|
|
return 0.5;
|
|
|
|
|
}
|
2016-08-13 07:28:11 +00:00
|
|
|
|
if(target.hasSkill('toulianghuanzhu2')) return 0;
|
2016-03-22 06:45:57 +00:00
|
|
|
|
return -0.5;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
wuxie:function(){
|
|
|
|
|
return 0;
|
|
|
|
|
},
|
2017-02-04 12:02:30 +00:00
|
|
|
|
useful:[3,1],
|
|
|
|
|
value:[4,1]
|
2016-03-22 06:45:57 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
2015-04-29 03:25:17 +00:00
|
|
|
|
hufu:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'basic',
|
2017-01-12 14:50:54 +00:00
|
|
|
|
savable:function(card,player,dying){
|
|
|
|
|
return dying==player;
|
|
|
|
|
},
|
2015-04-29 03:25:17 +00:00
|
|
|
|
ai:{
|
|
|
|
|
value:[7.5,5,2],
|
|
|
|
|
useful:[7.5,5,2],
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
huoshan:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'delay',
|
2017-01-15 09:55:22 +00:00
|
|
|
|
modTarget:function(card,player,target){
|
|
|
|
|
return lib.filter.judge(card,player,target);
|
|
|
|
|
},
|
2015-04-29 03:25:17 +00:00
|
|
|
|
enable:function(card,player){
|
2017-04-02 05:04:48 +00:00
|
|
|
|
return player.canAddJudge(card);
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return (lib.filter.judge(card,player,target)&&player==target);
|
|
|
|
|
},
|
|
|
|
|
selectTarget:[-1,-1],
|
|
|
|
|
judge:function(card){
|
|
|
|
|
if(get.suit(card)=='heart'&&get.number(card)>1&&get.number(card)<10) return -6;
|
|
|
|
|
return 0;
|
|
|
|
|
},
|
|
|
|
|
effect:function(){
|
|
|
|
|
if(result.judge){
|
|
|
|
|
player.damage(2,'fire','nosource');
|
2017-02-11 15:07:50 +00:00
|
|
|
|
var players=game.filterPlayer(function(current){
|
|
|
|
|
return get.distance(player,current)<=1&&player!=current;
|
|
|
|
|
});
|
|
|
|
|
players.sort(lib.sort.seat);
|
|
|
|
|
for(var i=0;i<players.length;i++){
|
|
|
|
|
players[i].damage(1,'fire','nosource');
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
2017-04-02 05:04:48 +00:00
|
|
|
|
player.addJudgeNext(card);
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
cancel:function(){
|
2017-04-02 05:04:48 +00:00
|
|
|
|
player.addJudgeNext(card);
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
useful:0,
|
|
|
|
|
value:0,
|
|
|
|
|
},
|
|
|
|
|
order:1,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
2017-02-11 15:07:50 +00:00
|
|
|
|
return lib.card.shandian.ai.result.target(player,target);
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
|
|
|
|
// damage:1,
|
|
|
|
|
// natureDamage:1,
|
|
|
|
|
// fireDamage:1,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
hongshui:{
|
|
|
|
|
type:'delay',
|
|
|
|
|
enable:function(card,player){
|
2017-04-02 05:04:48 +00:00
|
|
|
|
return player.canAddJudge(card);
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
2017-01-15 09:55:22 +00:00
|
|
|
|
modTarget:function(card,player,target){
|
|
|
|
|
return lib.filter.judge(card,player,target);
|
|
|
|
|
},
|
2015-04-29 03:25:17 +00:00
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return (lib.filter.judge(card,player,target)&&player==target);
|
|
|
|
|
},
|
|
|
|
|
selectTarget:[-1,-1],
|
|
|
|
|
judge:function(card){
|
|
|
|
|
if(get.suit(card)=='club'&&get.number(card)>1&&get.number(card)<10) return -3;
|
|
|
|
|
return 0;
|
|
|
|
|
},
|
|
|
|
|
fullskin:true,
|
|
|
|
|
effect:function(){
|
|
|
|
|
if(result.judge){
|
2017-03-27 08:48:22 +00:00
|
|
|
|
if(player.countCards('he')==0) player.loseHp();
|
2015-09-03 03:49:14 +00:00
|
|
|
|
else{
|
2017-03-27 08:48:22 +00:00
|
|
|
|
player.discard(player.getCards('he').randomGets(3));
|
2015-09-03 03:49:14 +00:00
|
|
|
|
}
|
2015-04-29 03:25:17 +00:00
|
|
|
|
var players=get.players();
|
2015-09-03 03:49:14 +00:00
|
|
|
|
for(var i=0;i<players.length;i++){
|
|
|
|
|
var dist=get.distance(player,players[i]);
|
|
|
|
|
if(dist<=2&&player!=players[i]){
|
2017-03-27 08:48:22 +00:00
|
|
|
|
var cs=players[i].getCards('he');
|
2015-09-03 03:49:14 +00:00
|
|
|
|
if(cs.length==0) players[i].loseHp();
|
|
|
|
|
else{
|
|
|
|
|
players[i].discard(cs.randomGets(3-Math.max(1,dist)));
|
|
|
|
|
}
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
if(!card.expired){
|
2015-06-27 16:21:25 +00:00
|
|
|
|
var target=player.next;
|
2015-12-10 15:57:45 +00:00
|
|
|
|
for(var iwhile=0;iwhile<10;iwhile++){
|
2017-03-27 10:15:30 +00:00
|
|
|
|
if(target.hasJudge('hongshui')){
|
2015-12-10 15:57:45 +00:00
|
|
|
|
target=target.next;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
break;
|
|
|
|
|
}
|
2015-06-27 16:21:25 +00:00
|
|
|
|
}
|
2017-03-27 10:15:30 +00:00
|
|
|
|
if(target.hasJudge('hongshui')||target==player){
|
2015-12-10 15:57:45 +00:00
|
|
|
|
ui.discardPile.appendChild(card);
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
else{
|
2015-12-10 15:57:45 +00:00
|
|
|
|
if(card.name!='hongshui'){
|
|
|
|
|
target.addJudge('hongshui',card);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
target.addJudge(card);
|
|
|
|
|
}
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
card.expired=false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
cancel:function(){
|
2015-06-27 16:21:25 +00:00
|
|
|
|
if(!card.expired){
|
|
|
|
|
var target=player.next;
|
2015-12-10 15:57:45 +00:00
|
|
|
|
for(var iwhile=0;iwhile<10;iwhile++){
|
2017-03-27 10:15:30 +00:00
|
|
|
|
if(target.hasJudge('hongshui')){
|
2015-12-10 15:57:45 +00:00
|
|
|
|
target=target.next;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
break;
|
|
|
|
|
}
|
2015-06-27 16:21:25 +00:00
|
|
|
|
}
|
2017-03-27 10:15:30 +00:00
|
|
|
|
if(target.hasJudge('hongshui')||target==player){
|
2015-12-10 15:57:45 +00:00
|
|
|
|
ui.discardPile.appendChild(card);
|
2015-06-27 16:21:25 +00:00
|
|
|
|
}
|
|
|
|
|
else{
|
2015-12-10 15:57:45 +00:00
|
|
|
|
if(card.name!='hongshui'){
|
|
|
|
|
target.addJudge('hongshui',card);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
target.addJudge(card);
|
|
|
|
|
}
|
2015-06-27 16:21:25 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
card.expired=false;
|
|
|
|
|
}
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
useful:0,
|
|
|
|
|
value:0,
|
|
|
|
|
},
|
|
|
|
|
order:1,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
2017-02-13 15:42:23 +00:00
|
|
|
|
return lib.card.shandian.ai.result.target(player,target);
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
liuxinghuoyu:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'trick',
|
|
|
|
|
enable:true,
|
2016-05-31 02:24:21 +00:00
|
|
|
|
filterTarget:true,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
2017-03-27 08:48:22 +00:00
|
|
|
|
if(target.countCards('he')<2){
|
2016-07-01 01:31:02 +00:00
|
|
|
|
event.directfalse=true;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
target.chooseToDiscard('he',2).ai=function(card){
|
|
|
|
|
if(target.hasSkillTag('nofire')) return 0;
|
2017-04-02 09:33:42 +00:00
|
|
|
|
if(get.damageEffect(target,player,target,'fire')>=0) return 0;
|
2016-07-20 02:04:20 +00:00
|
|
|
|
if(player.hasSkillTag('notricksource')) return 0;
|
|
|
|
|
if(target.hasSkillTag('notrick')) return 0;
|
2016-07-01 01:31:02 +00:00
|
|
|
|
if(card.name=='tao') return 0;
|
|
|
|
|
if(target.hp==1&&card.name=='jiu') return 0;
|
|
|
|
|
if(target.hp==1&&get.type(card)!='basic'){
|
2017-04-02 09:33:42 +00:00
|
|
|
|
return 10-get.value(card);
|
2016-07-01 01:31:02 +00:00
|
|
|
|
}
|
2017-04-02 09:33:42 +00:00
|
|
|
|
return 8-get.value(card);
|
2016-07-01 01:31:02 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
2015-04-29 03:25:17 +00:00
|
|
|
|
"step 1"
|
2016-07-01 07:34:40 +00:00
|
|
|
|
if(event.directfalse||!result.bool){
|
2016-05-31 02:24:21 +00:00
|
|
|
|
target.damage('fire');
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
order:4,
|
|
|
|
|
value:7,
|
|
|
|
|
useful:2,
|
|
|
|
|
},
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
if(target.hasSkillTag('nofire')) return 0;
|
2017-04-02 09:33:42 +00:00
|
|
|
|
if(get.damageEffect(target,player,player)<0&&get.attitude(player,target)>0){
|
2016-07-01 07:34:40 +00:00
|
|
|
|
return -2;
|
|
|
|
|
}
|
2017-03-27 08:48:22 +00:00
|
|
|
|
var nh=target.countCards('he');
|
2015-09-16 02:45:45 +00:00
|
|
|
|
if(target==player) nh--;
|
2016-05-31 02:24:21 +00:00
|
|
|
|
switch(nh){
|
|
|
|
|
case 0:case 1:return -2;
|
|
|
|
|
case 2:return -1.5;
|
|
|
|
|
case 3:return -1;
|
|
|
|
|
default:return -0.7;
|
|
|
|
|
}
|
2015-04-29 03:25:17 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
2016-05-31 02:24:21 +00:00
|
|
|
|
damage:1,
|
|
|
|
|
fireDamage:1,
|
|
|
|
|
natureDamage:1,
|
|
|
|
|
discard:1,
|
|
|
|
|
loseCard:1,
|
2015-04-29 03:25:17 +00:00
|
|
|
|
position:'he',
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
qiankundai:{
|
|
|
|
|
fullskin:true,
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip5',
|
|
|
|
|
onLose:function(){
|
|
|
|
|
player.draw();
|
|
|
|
|
},
|
|
|
|
|
skills:['qiankundai'],
|
|
|
|
|
ai:{
|
|
|
|
|
order:9.5,
|
|
|
|
|
basic:{
|
|
|
|
|
equipValue:function(card,player){
|
2017-03-27 09:30:25 +00:00
|
|
|
|
if(player.countCards('h','qiankundai')) return 6;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
skill:{
|
2016-03-22 06:45:57 +00:00
|
|
|
|
suolianjia:{
|
|
|
|
|
trigger:{player:'damageBefore'},
|
|
|
|
|
filter:function(event){
|
2017-02-28 05:40:28 +00:00
|
|
|
|
if(event.source&&event.source.hasSkillTag('unequip',false,event.card)) return;
|
2016-03-22 06:45:57 +00:00
|
|
|
|
if(event.nature) return true;
|
|
|
|
|
},
|
|
|
|
|
forced:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.untrigger();
|
|
|
|
|
trigger.finish();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
nofire:true,
|
|
|
|
|
nothunder:true,
|
|
|
|
|
effect:{
|
|
|
|
|
target:function(card,player,target,current){
|
2017-02-28 05:40:28 +00:00
|
|
|
|
if(player.hasSkillTag('unequip',false,card)) return;
|
2016-03-22 06:45:57 +00:00
|
|
|
|
if(get.tag(card,'natureDamage')) return 'zerotarget';
|
|
|
|
|
if(card.name=='tiesuo'){
|
|
|
|
|
return [0,0];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
toulianghuanzhu2:{},
|
2017-02-04 12:02:30 +00:00
|
|
|
|
youdishenru:{
|
|
|
|
|
trigger:{source:'damageEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
silent:true,
|
2017-02-05 03:56:18 +00:00
|
|
|
|
onremove:true,
|
2017-02-04 12:02:30 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.card&&event.card.name=='sha'&&event.player==player.storage.youdishenru;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
delete player.storage.youdishenru;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
_youdishenru:{
|
|
|
|
|
trigger:{target:'shaBefore'},
|
|
|
|
|
direct:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.hasCard('youdishenru');
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
2017-02-04 15:59:46 +00:00
|
|
|
|
event.youdiinfo={
|
|
|
|
|
source:trigger.player,
|
|
|
|
|
evt:trigger
|
|
|
|
|
};
|
2017-03-31 09:51:14 +00:00
|
|
|
|
player.chooseToUse(function(card,player){
|
|
|
|
|
if(card.name!='youdishenru') return false;
|
|
|
|
|
return lib.filter.cardEnabled(card,player,'forceEnable');
|
|
|
|
|
},'是否使用诱敌深入?').set('source',trigger.player);
|
2017-02-04 12:02:30 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
2016-03-22 06:45:57 +00:00
|
|
|
|
_chenhuodajie:{
|
|
|
|
|
trigger:{global:'damageEnd'},
|
|
|
|
|
direct:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(event.player==player) return false;
|
2017-03-27 08:48:22 +00:00
|
|
|
|
if(!event.player.countCards('he')) return false;
|
2017-01-15 02:06:03 +00:00
|
|
|
|
if(!lib.filter.targetEnabled({name:'chenhuodajie'},player,event.player)) return false;
|
2017-02-04 12:02:30 +00:00
|
|
|
|
return player.hasCard('chenhuodajie');
|
2016-03-22 06:45:57 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
2016-10-01 07:52:22 +00:00
|
|
|
|
player.chooseToUse(get.prompt('chenhuodajie',trigger.player).replace(/发动/,'使用'),function(card,player){
|
2016-03-22 06:45:57 +00:00
|
|
|
|
if(card.name!='chenhuodajie') return false;
|
2017-03-31 05:21:56 +00:00
|
|
|
|
return lib.filter.cardEnabled(card,player,'forceEnable');
|
2016-03-22 06:45:57 +00:00
|
|
|
|
},trigger.player,-1).targetRequired=true;
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-04-29 03:25:17 +00:00
|
|
|
|
qiankundai:{
|
|
|
|
|
mod:{
|
|
|
|
|
maxHandcard:function(player,num){
|
|
|
|
|
return num+1;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
_hufu_sha:{
|
|
|
|
|
enable:['chooseToRespond','chooseToUse'],
|
|
|
|
|
filter:function(event,player){
|
2017-03-27 09:30:25 +00:00
|
|
|
|
return player.countCards('h','hufu')>0;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
|
|
|
|
filterCard:{name:'hufu'},
|
|
|
|
|
viewAs:{name:'sha'},
|
|
|
|
|
prompt:'将一张虎符当杀使用或打出',
|
|
|
|
|
check:function(card){return 1},
|
|
|
|
|
ai:{
|
|
|
|
|
order:1,
|
|
|
|
|
useful:7.5,
|
|
|
|
|
value:7.5
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
_hufu_shan:{
|
|
|
|
|
enable:['chooseToRespond','chooseToUse'],
|
|
|
|
|
filter:function(event,player){
|
2017-03-27 09:30:25 +00:00
|
|
|
|
return player.countCards('h','hufu')>0;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
|
|
|
|
filterCard:{name:'hufu'},
|
|
|
|
|
viewAs:{name:'shan'},
|
|
|
|
|
prompt:'将一张虎符当闪使用或打出',
|
|
|
|
|
check:function(){return 1},
|
|
|
|
|
ai:{
|
|
|
|
|
order:1,
|
|
|
|
|
useful:7.5,
|
|
|
|
|
value:7.5
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
_hufu_jiu:{
|
|
|
|
|
enable:['chooseToRespond','chooseToUse'],
|
|
|
|
|
filter:function(event,player){
|
2017-03-27 09:30:25 +00:00
|
|
|
|
return player.countCards('h','hufu')>0;
|
2015-04-29 03:25:17 +00:00
|
|
|
|
},
|
|
|
|
|
filterCard:{name:'hufu'},
|
|
|
|
|
viewAs:{name:'jiu'},
|
|
|
|
|
prompt:'将一张虎符当酒使用',
|
|
|
|
|
check:function(){return 1},
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
translate:{
|
2017-02-05 08:48:28 +00:00
|
|
|
|
diaobingqianjiang:'调兵遣将',
|
2017-03-31 09:51:14 +00:00
|
|
|
|
diaobingqianjiang_info:'出牌阶段,对你及其他有手牌的角色使用。你摸一张牌,然后亮出牌堆顶的X张牌(X为存活角色数的一半,向上取整),目标可以用一张手牌替换其中的一张牌。结算后,你可以将剩余的牌中的任意张以任意顺序置于牌堆顶',
|
2017-02-04 06:48:16 +00:00
|
|
|
|
caochuanjiejian:'草船借箭',
|
2017-02-05 05:41:36 +00:00
|
|
|
|
caochuanjiejian_info:'出牌阶段对一名有手牌的其他角色使用,目标选择一项:将手牌中的所有杀(至少1张)交给你,并视为对你使用一张杀;或展示手牌并令你弃置任意张',
|
2017-02-04 06:48:16 +00:00
|
|
|
|
xiaolicangdao:'笑里藏刀',
|
|
|
|
|
xiaolicangdao_info:'出牌阶段,对一名其他角色使用。你将此【笑里藏刀】交给目标,然后弃置其一张手牌,若这两张牌牌名相同,你对其造成1点伤害',
|
|
|
|
|
shezhanqunru:'舌战群儒',
|
|
|
|
|
shezhanqunru_info:'出牌阶段,对你使用。你请求所有有手牌的其他角色响应,然后同时与响应的角色拼点。若有角色响应且结果中你赢的次数更多,或若没有角色响应,你摸三张牌',
|
2017-02-04 05:07:19 +00:00
|
|
|
|
youdishenru:'诱敌深入',
|
|
|
|
|
youdishenru_info:'当以你为目标的【杀】生效前,对此【杀】使用。抵消此【杀】,然后此【杀】的使用者需对你使用【杀】(在此【杀】结算结束之后,若此【杀】未对你造成伤害,其重复此流程),否则受到你造成的1点伤害',
|
2016-03-22 06:45:57 +00:00
|
|
|
|
suolianjia:'锁链甲',
|
|
|
|
|
suolianjia_info:'锁定技,你防止即将受到的属性伤害,当装备时进入连环状态,当卸下时解除连环状态',
|
|
|
|
|
suolianjia_bg:'链',
|
|
|
|
|
geanguanhuo:'隔岸观火',
|
2017-02-23 06:39:19 +00:00
|
|
|
|
geanguanhuo_info:'出牌阶段对一名其他角色使用,令目标与一名你指定的另一名角色拼点,赢的角色获得对方的一张牌;若点数相同,目标可弃置你一张牌(存活角色不超过2时可重铸)',
|
2016-03-22 06:45:57 +00:00
|
|
|
|
toulianghuanzhu:'偷梁换柱',
|
2017-02-10 09:48:40 +00:00
|
|
|
|
toulianghuanzhu_info:'出牌阶段对一名有手牌的角色使用,选择另一名有手牌的角色获得目标两张手牌(不足则全拿),然后还给其等量手牌',
|
2016-03-22 06:45:57 +00:00
|
|
|
|
toulianghuanzhu_bg:'柱',
|
|
|
|
|
yihuajiemu:'移花接木',
|
2017-02-09 10:51:08 +00:00
|
|
|
|
yihuajiemu_info:'对一名装备区内有宝物的角色使用,将其宝物牌转移至另一名角色',
|
2016-03-22 06:45:57 +00:00
|
|
|
|
fudichouxin:'釜底抽薪',
|
|
|
|
|
fudichouxin_info:'与一名角色进行拼点,若成功则获得双方拼点牌',
|
2016-06-25 06:30:34 +00:00
|
|
|
|
shuiyanqijun:'水攻',
|
2016-03-22 06:45:57 +00:00
|
|
|
|
shuiyanqijun_info:'令所有有装备的角色各弃置一张装备牌',
|
2017-02-04 02:55:04 +00:00
|
|
|
|
wangmeizhike:'望梅止渴',
|
|
|
|
|
wangmeizhike_info:'出牌阶段对一名角色使用,若没有角色手牌比目标少,目标摸两张牌;若没有角色体力比目标少,目标回复一点体力',
|
2016-03-22 06:45:57 +00:00
|
|
|
|
chenhuodajie:'趁火打劫',
|
|
|
|
|
chenhuodajie_info:'任意一名其他角色受到伤害时对其使用,获得其一张牌',
|
2015-04-29 03:25:17 +00:00
|
|
|
|
huoshan:'火山',
|
|
|
|
|
huoshan_info:'出牌阶段,对自己使用。若判定结果为红桃2~9,则目标角色受到2点火焰伤害,距离目标1以内的其他角色受到1点火焰伤害。若判定不为红桃2~9,将之移动到下家的判定区里。',
|
|
|
|
|
hongshui:'洪水',
|
2015-09-03 03:49:14 +00:00
|
|
|
|
hongshui_info:'出牌阶段,对自己使用。若判定结果为梅花2~9,该角色随机弃置3张牌,距离该角色为X的角色随机弃置3-X张牌,若没有牌则失去一点体力,X至少为1',
|
2015-04-29 03:25:17 +00:00
|
|
|
|
liuxinghuoyu:'流星火羽',
|
2016-05-31 02:24:21 +00:00
|
|
|
|
liuxinghuoyu_info:'出牌阶段,对一名角色使用,令目标弃置2张牌,或受到一点火焰伤害',
|
2015-04-29 03:25:17 +00:00
|
|
|
|
qiankundai:'乾坤袋',
|
2017-02-04 02:55:04 +00:00
|
|
|
|
qiankundai_info:'你的手牌上限+1。当你失去该装备时,你摸一张牌。',
|
2015-04-29 03:25:17 +00:00
|
|
|
|
hufu:'虎符',
|
|
|
|
|
hufu_bg:'符',
|
|
|
|
|
_hufu_sha:'符杀',
|
|
|
|
|
_hufu_shan:'符闪',
|
|
|
|
|
_hufu_jiu:'符酒',
|
|
|
|
|
hufu_info:'你可以将一张虎符当作杀、闪或酒使用或打出',
|
|
|
|
|
},
|
|
|
|
|
list:[
|
|
|
|
|
['heart',1,'hufu'],
|
|
|
|
|
['spade',1,'hufu'],
|
|
|
|
|
['club',1,'qiankundai'],
|
|
|
|
|
['heart',6,'huoshan','fire'],
|
|
|
|
|
['club',7,'hongshui'],
|
|
|
|
|
['diamond',3,'liuxinghuoyu','fire'],
|
|
|
|
|
['heart',6,'liuxinghuoyu','fire'],
|
|
|
|
|
['heart',9,'liuxinghuoyu','fire'],
|
2016-03-22 06:45:57 +00:00
|
|
|
|
['heart',3,'yihuajiemu'],
|
|
|
|
|
["diamond",3,'guohe'],
|
|
|
|
|
|
|
|
|
|
['diamond',4,'fudichouxin'],
|
|
|
|
|
['diamond',1,'yihuajiemu'],
|
|
|
|
|
['club',6,'fudichouxin'],
|
|
|
|
|
['spade',1,'fudichouxin'],
|
|
|
|
|
['club',7,'shuiyanqijun'],
|
|
|
|
|
['diamond',7,'yihuajiemu'],
|
|
|
|
|
['club',8,'shuiyanqijun'],
|
|
|
|
|
['club',8,'guohe'],
|
|
|
|
|
['spade',9,'shuiyanqijun'],
|
|
|
|
|
['heart',9,'toulianghuanzhu'],
|
|
|
|
|
['club',10,'toulianghuanzhu'],
|
|
|
|
|
['spade',13,'guohe'],
|
2017-02-04 05:07:19 +00:00
|
|
|
|
['heart',6,'wangmeizhike'],
|
|
|
|
|
['club',1,'wangmeizhike'],
|
2016-03-22 06:45:57 +00:00
|
|
|
|
['diamond',6,'chenhuodajie'],
|
|
|
|
|
['diamond',9,'chenhuodajie'],
|
|
|
|
|
['club',3,'chenhuodajie'],
|
|
|
|
|
|
|
|
|
|
['club',13,'suolianjia'],
|
2017-02-04 09:54:43 +00:00
|
|
|
|
|
|
|
|
|
['club',3,'caochuanjiejian'],
|
|
|
|
|
['spade',7,'caochuanjiejian'],
|
2017-02-04 12:02:30 +00:00
|
|
|
|
['spade',5,'xiaolicangdao'],
|
|
|
|
|
['diamond',11,'xiaolicangdao'],
|
|
|
|
|
['heart',1,'geanguanhuo'],
|
|
|
|
|
['spade',6,'geanguanhuo'],
|
|
|
|
|
['heart',4,'shezhanqunru'],
|
|
|
|
|
['club',8,'shezhanqunru'],
|
2017-02-05 08:48:28 +00:00
|
|
|
|
['diamond',1,'diaobingqianjiang'],
|
|
|
|
|
['spade',2,'diaobingqianjiang'],
|
2017-02-04 12:02:30 +00:00
|
|
|
|
['heart',12,'youdishenru'],
|
|
|
|
|
['club',2,'youdishenru'],
|
|
|
|
|
['spade',9,'youdishenru'],
|
2015-04-29 03:25:17 +00:00
|
|
|
|
],
|
|
|
|
|
}
|