This commit is contained in:
libccy 2017-08-05 10:57:53 +08:00
parent 9cf7dd0e7a
commit 0b1b34a897
4 changed files with 38 additions and 12 deletions

View File

@ -932,9 +932,17 @@ game.import('card',function(lib,game,ui,get,ai,_status){
return target!=player&&target.countCards('h');
},
content:function(){
'step 0'
player.gainPlayerCard(target,'h',true,'visible').set('ai',function(button){
return get.value(button.link);
});
'step 1'
var card=get.cardPile(function(card){
return get.subtype(card)=='equip4';
});
if(card){
target.equip(card,true);
}
},
ai:{
basic:{
@ -943,7 +951,10 @@ game.import('card',function(lib,game,ui,get,ai,_status){
useful:[5,1],
},
result:{
target:-1
target:function(player,target){
if(target.getEquip(4)) return -2;
return -1;
}
},
}
},
@ -2197,7 +2208,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
gw_youer_bg:'饵',
gw_youer_info:'将一名其他角色的所有手牌移出游戏,然后摸一张牌,当前回合结束后该角色将以此法失去的牌收回手牌',
gw_tongdi:'通敌',
gw_tongdi_info:'观看一名其他角色的手牌并获得其中一张',
gw_tongdi_info:'观看一名其他角色的手牌并获得其中一张,然后令目标装备一件进攻马',
gw_baoxueyaoshui:'暴雪药水',
gw_baoxueyaoshui_info:'令一名角色弃置两张手牌并摸一张牌',
gw_birinongwu:'蔽日浓雾',

View File

@ -296,7 +296,9 @@ game.import('card',function(lib,game,ui,get,ai,_status){
},
shengdong:{
fullskin:true,
enable:true,
enable:function(){
return game.countPlayer()>2;
},
chongzhu:function(){
return game.countPlayer()<=2;
},

View File

@ -1070,6 +1070,15 @@ game.import('card',function(lib,game,ui,get,ai,_status){
multitarget:true,
targetprompt:['被借刀','出杀目标'],
complexTarget:true,
multicheck:function(){
return game.hasPlayer(function(current){
if(current.getEquip(1)){
return game.hasPlayer(function(current2){
return lib.filter.filterTarget({name:'sha'},current,current2);
})
}
});
},
filterTarget:function(card,player,target){
if(ui.selected.targets.length==0){
return (player!=target&&target.getCards('e',{subtype:'equip1'}).length);

View File

@ -12597,6 +12597,11 @@
event.finish();
return;
}
if(event.draw){
game.delay(0,300);
player.$draw(card);
}
"step 2"
if(card.clone){
game.broadcast(function(card,player){
if(card.clone){
@ -12608,7 +12613,7 @@
}
player.equiping=true;
player.lose(player.getCards('e',{subtype:get.subtype(card)}),false);
"step 2"
"step 3"
if(player.isMin()){
event.finish();
card.discard();
@ -12624,9 +12629,6 @@
}
},get.subtype(card));
player.$equip(card);
if(event.draw){
player.$draw(card);
}
game.addVideo('equip',player,get.cardInfo(card));
game.log(player,'装备了',card);
"step 3"
@ -12649,10 +12651,6 @@
if(info.equipDelay!='false') game.delayx();
}
delete player.equiping;
"step 4"
if(event.draw){
game.delay();
}
},
addJudge:function(){
"step 0"
@ -14485,6 +14483,9 @@
next.forced=true;
next.onresult=function(result){
if(result.bool){
if(info.multitarget&&result.targets.length<get.select(info.selectTarget)[0]){
return;
}
player.useCard(card,result.targets);
}
}
@ -15663,10 +15664,13 @@
}
return this;
},
equip:function(card){
equip:function(card,draw){
var next=game.createEvent('equip');
next.card=card;
next.player=this;
if(draw){
next.draw=true;
}
next.setContent(lib.element.content.equip);
return next;
},