diff --git a/card/swd.js b/card/swd.js index d907184e3..09851ebbf 100644 --- a/card/swd.js +++ b/card/swd.js @@ -1,5 +1,121 @@ card.swd={ card:{ + mujiaren:{ + fullskin:true, + enable:true, + type:'jiguan', + usable:1, + forceUsable:true, + wuxieable:true, + selectTarget:-1, + filterTarget:function(card,player,target){ + return target==player; + }, + content:function(){ + 'step 0' + var cards=player.get('h',function(card){ + return get.type(card)!='basic'; + }); + if(cards.length){ + player.lose(cards)._triggered=null; + } + event.num=1+cards.length; + 'step 1' + var cards=[]; + var list=[]; + for(var i in lib.card){ + if(lib.card[i].type=='jiguan') list.push(i); + } + if(list.length){ + for(var i=0;i0; @@ -2821,6 +3009,31 @@ card.swd={ }, viewAs:{name:'jiguanshu'} }, + jiguanyaoshu_skill:{ + trigger:{player:'loseEnd'}, + forced:true, + filter:function(event,player){ + if(_status.currentPhase==player) return false; + for(var i=0;i