From 76901377f032962c29e24d4b5dad0cc75b5e78b8 Mon Sep 17 00:00:00 2001 From: libccy Date: Sat, 25 Feb 2017 15:36:56 +0800 Subject: [PATCH] 2 --- character/swd.js | 26 ++++++++++++-------------- game/game.js | 19 +++++++++---------- mode/guozhan.js | 2 +- 3 files changed, 22 insertions(+), 25 deletions(-) diff --git a/character/swd.js b/character/swd.js index 3c0c22f9f..c9ab4e6d9 100644 --- a/character/swd.js +++ b/character/swd.js @@ -6366,9 +6366,9 @@ character.swd={ // var target=trigger.targets[0]; // var names=[]; // var list=[]; - // if(target.name&&!target.classList.contains('unseen')) names.add(target.name); - // if(target.name1&&!target.classList.contains('unseen')) names.add(target.name1); - // if(target.name2&&!target.classList.contains('unseen2')) names.add(target.name2); + // if(target.name&&!target.isUnseen(0)) names.add(target.name); + // if(target.name1&&!target.isUnseen(0)) names.add(target.name1); + // if(target.name2&&!target.isUnseen(1)) names.add(target.name2); // var pss=player.get('s'); // for(var i=0;i0; }, filterTarget:function(card,player,target){ var names=[]; - if(target.name&&!target.classList.contains('unseen')) names.add(target.name); - if(target.name1&&!target.classList.contains('unseen')) names.add(target.name1); - if(target.name2&&!target.classList.contains('unseen2')) names.add(target.name2); + if(target.name&&!target.isUnseen(0)) names.add(target.name); + if(target.name1&&!target.isUnseen(0)) names.add(target.name1); + if(target.name2&&!target.isUnseen(1)) names.add(target.name2); var pss=player.get('s'); for(var i=0;i