bugfix
This commit is contained in:
parent
a86bb2fbe3
commit
6b888a3c93
|
@ -338,7 +338,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
enable:'chooseToUse',
|
enable:'chooseToUse',
|
||||||
filter:function(event,player){
|
filter:function(event,player){
|
||||||
if(!event.filterCard({name:'sha'},player,event)&&!event.filterCard({name:'wuxie'},player,event)) return false;
|
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;
|
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;
|
event.getParent().addCount=false;
|
||||||
},
|
},
|
||||||
popname:true,
|
popname:true,
|
||||||
position:'h',
|
|
||||||
viewAs:{
|
viewAs:{
|
||||||
name:links[0][2],
|
name:links[0][2],
|
||||||
},
|
},
|
||||||
|
@ -384,7 +383,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
hiddenCard:function(player,name){
|
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;
|
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,
|
respondSha:true,
|
||||||
skillTagFilter:function(player,tag,arg){
|
skillTagFilter:function(player,tag,arg){
|
||||||
if(arg=='respond') return false;
|
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 !player.getStorage('starlifeng_count').contains(get.color(card,player))||_status.connectMode;
|
||||||
})) return false;
|
})) return false;
|
||||||
},
|
},
|
||||||
|
|
|
@ -419,6 +419,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
charlotte:true,
|
charlotte:true,
|
||||||
onremove:true,
|
onremove:true,
|
||||||
filter:function(event,player){
|
filter:function(event,player){
|
||||||
|
if(!lib.suit.includes(get.suit(event.card))) return false;
|
||||||
return player.getStorage('qingbei_effect').length;
|
return player.getStorage('qingbei_effect').length;
|
||||||
},
|
},
|
||||||
direct:true,
|
direct:true,
|
||||||
|
|
Loading…
Reference in New Issue