diff --git a/card/swd.js b/card/swd.js index 1084b8b88..912bba3eb 100644 --- a/card/swd.js +++ b/card/swd.js @@ -1040,7 +1040,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){ card.classList.remove('glow'); },500); } - }(es[i],lib.skill._lingjianduanzao.process([card,es[i]]),i==es.length-1)),(i-delayed)*200); + }(es[i],lib.skill.lingjianduanzao.process([card,es[i]]),i==es.length-1)),(i-delayed)*200); } target.$gain2(cards); game.pause(); @@ -3882,77 +3882,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){ } } }, - _lingjianduanzao:{ - enable:'phaseUse', - position:'he', - discard:false, - losetrigger:false, - longprompt:true, - prompt:function(event){ - var lingjians=[],types=[]; - var hs=event.player.getCards('he'); - for(var i=0;i'+lib.translate[lingjians[i]]+''; - for(var j=0;j'; - if(type=='jiqi') break; - } - str+=''; - } - return str; - }, - check:function(card){ - if(get.type(card)=='jiqi'){ - if(_status.event.player.needsToDiscard()){ - return 0.5; - } - return 0; - } - var num=1+get.value(card); - if(get.position(card)=='e'){ - num+=0.1; - } - return num; - }, - filterCard:function(card){ - var type=get.type(card); - if(type=='equip'){ - if(!lib.inpile.contains(card.name)) return false; - if(lib.card[card.name].nopower) return false; - if(lib.card[card.name].unique) return false; - } - if(ui.selected.cards.length){ - var type2=get.type(ui.selected.cards[0]); - if(type2=='equip'){ - return type=='hslingjian'||type=='jiqi'; - } - else{ - return type=='equip'; - } - } - else{ - return type=='equip'||type=='hslingjian'||type=='jiqi'; - } - }, + lingjianduanzao:{ process:function(cards){ var equip; for(var i=0;i'+lib.translate[lingjians[i]]+''; + for(var j=0;j'; + if(type=='jiqi') break; + } + str+=''; + } + return str; + }, + check:function(card){ + if(get.type(card)=='jiqi'){ + if(_status.event.player.needsToDiscard()){ + return 0.5; + } + return 0; + } + var num=1+get.value(card); + if(get.position(card)=='e'){ + num+=0.1; + } + return num; + }, + filterCard:function(card){ + var type=get.type(card); + if(type=='equip'){ + if(!lib.inpile.contains(card.name)) return false; + if(lib.card[card.name].nopower) return false; + if(lib.card[card.name].unique) return false; + } + if(ui.selected.cards.length){ + var type2=get.type(ui.selected.cards[0]); + if(type2=='equip'){ + return type=='hslingjian'||type=='jiqi'; + } + else{ + return type=='equip'; + } + } + else{ + return type=='equip'||type=='hslingjian'||type=='jiqi'; + } + }, selectCard:2, complexCard:true, filter:function(event,player){ @@ -4076,7 +4078,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){ for(var i=0;i