From ae12f99e1161c22ae5df542b2d09c06f287b5319 Mon Sep 17 00:00:00 2001 From: libccy Date: Tue, 13 Sep 2016 22:57:15 +0800 Subject: [PATCH] f --- card/extra.js | 2 +- card/swd.js | 39 +++++++++++++++++++-------------------- game/game.js | 36 ++++++++++++++++++++++++++++++------ 3 files changed, 50 insertions(+), 27 deletions(-) diff --git a/card/extra.js b/card/extra.js index 0ddaf2a6b..e38029dc5 100644 --- a/card/extra.js +++ b/card/extra.js @@ -18,7 +18,7 @@ card.extra={ return target==player; }, content:function(){ - if(target==_status.dying){ + if(target==_status.event.getParent(2).dying){ target.recover(); if(_status.currentPhase==target){ target.getStat().card.jiu--; diff --git a/card/swd.js b/card/swd.js index 09851ebbf..6e3081348 100644 --- a/card/swd.js +++ b/card/swd.js @@ -511,8 +511,11 @@ card.swd={ enable:true, type:'jiguan', wuxieable:true, - range:{global:1}, - filterTarget:true, + filterTarget:function(card,player,target){ + return target==player; + }, + selectTarget:-1, + modTarget:true, content:function(){ var list=get.typeCard('hslingjian'); if(list.length){ @@ -538,7 +541,6 @@ card.swd={ enable:true, type:'jiguan', wuxieable:true, - range:{global:1}, filterTarget:function(card,player,target){ var es=target.get('e'); for(var i=0;i