修复【百出】filter中str和content定义不同的bug

This commit is contained in:
mengxinzxz 2023-10-26 23:33:08 +08:00 committed by GitHub
parent bcf4916f0a
commit 8c0b782fe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
filter:function(event,player){ filter:function(event,player){
if(player.getStorage('clanbaichu').contains(event.card.name)) return true; if(player.getStorage('clanbaichu').contains(event.card.name)) return true;
if(get.suit(event.card)=='none') return false; if(get.suit(event.card)=='none') return false;
var str=(get.suit(event.card)+''+get.type2(event.card)); var str=(get.suit(event.card)+'+'+get.type2(event.card));
if(!player.getStorage('clanbaichu').contains(str)) return true; if(!player.getStorage('clanbaichu').contains(str)) return true;
return !player.hasSkill('qice'); return !player.hasSkill('qice');
}, },