diff --git a/card/swd.js b/card/swd.js index fe6521969..b963896c4 100644 --- a/card/swd.js +++ b/card/swd.js @@ -134,92 +134,6 @@ card.swd={ } } }, - pantao:{ - fullskin:true, - type:'basic', - enable:function(card,player){ - return player.hp=2&&target.num('h','tao')<=1){ - keep=true; - } - var mode=get.mode(); - if(target.hp>=2&&keep&&target.hasFriend()){ - if(target.hp>2) return 0; - if(target.hp==2){ - for(var i=0;i=3){ - if(game.players[i].hp<=1) return 0; - if(mode=='identity'&&game.players[i].isZhu&&game.players[i].hp<=2) return 0; - } - } - } - } - if(target.hp<0&&target!=player&&target.identity!='zhu') return 0; - var att=ai.get.attitude(player,target); - if(att<3&&att>=0&&player!=target) return 0; - var tri=_status.event.getTrigger(); - if(mode=='identity'&&player.identity=='fan'&&target.identity=='fan'){ - if(tri&&tri.name=='dying'&&tri.source&&tri.source.identity=='fan'&&tri.source!=target){ - var num=0; - for(var i=0;i2) return 2; - } - } - if(num>1&&player==target) return 2; - return 0; - } - } - if(mode=='identity'&&player.identity=='zhu'&&target.identity=='nei'){ - if(tri&&tri.name=='dying'&&tri.source&&tri.source.identity=='zhong'){ - return 0; - } - } - if(mode=='stone'&&target.isMin()&& - player!=target&&tri&&tri.name=='dying'&&player.side==target.side&& - tri.source!=target.getEnemy()){ - return 0; - } - return 2; - }, - }, - tag:{ - recover:2, - save:2, - } - } - }, shencaojie:{ fullskin:true, type:'trick', @@ -285,12 +199,9 @@ card.swd={ while(list.length){ var card={name:list.randomRemove()}; var info=get.info(card); - var targets=[]; - for(var i=0;i1) return 0; + if(player.hasUnknown(2)) return 0; var nh=target.num('h'); if(get.mode()=='identity'){ if(target.isZhu&&nh<=1&&target.hp<=1) return -100; @@ -885,13 +792,10 @@ card.swd={ }, result:{ target:function(player,target){ - var players=[]; - for(var i=0;i=3&&ai.get.attitude(game.players[i],player)>=3){ - players.push(game.players[i]); - } - } + var players=game.filterPlayer(function(current){ + return (current!=player&&!current.isTurnedOver()&& + ai.get.attitude(player,current)>=3&&ai.get.attitude(current,player)>=3) + }); players.sort(lib.sort.seat); if(target==players[0]) return 2; return 0.5;