From 6b888a3c9359d753bb7c06ec2532ad1bde6651b6 Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Thu, 2 Nov 2023 22:50:45 +0800 Subject: [PATCH] bugfix --- character/sp2.js | 7 +++---- character/yijiang.js | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/character/sp2.js b/character/sp2.js index c4ea816bf..facb1f613 100644 --- a/character/sp2.js +++ b/character/sp2.js @@ -338,7 +338,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ enable:'chooseToUse', filter:function(event,player){ if(!event.filterCard({name:'sha'},player,event)&&!event.filterCard({name:'wuxie'},player,event)) return false; - return player.countCards('h',card=>{ + return player.countCards('hs',card=>{ return !player.getStorage('starlifeng_count').contains(get.color(card,player))||_status.connectMode; }); }, @@ -364,7 +364,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){ event.getParent().addCount=false; }, popname:true, - position:'h', viewAs:{ name:links[0][2], }, @@ -384,7 +383,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }, }, hiddenCard:function(player,name){ - if(name=='wuxie') return player.countCards('h',card=>{ + if(name=='wuxie') return player.countCards('hs',card=>{ return !player.getStorage('starlifeng_count').contains(get.color(card,player))||_status.connectMode; }); }, @@ -392,7 +391,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ respondSha:true, skillTagFilter:function(player,tag,arg){ if(arg=='respond') return false; - if(!player.countCards('h',card=>{ + if(!player.countCards('hs',card=>{ return !player.getStorage('starlifeng_count').contains(get.color(card,player))||_status.connectMode; })) return false; }, diff --git a/character/yijiang.js b/character/yijiang.js index ce296f148..6e99a454a 100755 --- a/character/yijiang.js +++ b/character/yijiang.js @@ -419,6 +419,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ charlotte:true, onremove:true, filter:function(event,player){ + if(!lib.suit.includes(get.suit(event.card))) return false; return player.getStorage('qingbei_effect').length; }, direct:true,