This commit is contained in:
mengxinzxz 2023-11-02 22:50:45 +08:00
parent a86bb2fbe3
commit 6b888a3c93
2 changed files with 4 additions and 4 deletions

View File

@ -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;
},

View File

@ -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,