diff --git a/character/old.js b/character/old.js index f98a68f38..b716c68ab 100644 --- a/character/old.js +++ b/character/old.js @@ -24,6 +24,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){ old_yuanshu:['male','qun',4,['yongsi','weidi']], old_lingju:['female','qun',3,['jieyuan','fenxin_old']], }, + characterFilter:{ + old_lingju:function(mode){ + return mode=='identity'; + } + }, skill:{ zhenshan:{ trigger:{player:'chooseToRespondBegin'}, diff --git a/character/shenhua.js b/character/shenhua.js index 46475a7bc..3017692f8 100644 --- a/character/shenhua.js +++ b/character/shenhua.js @@ -49,8 +49,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){ sunce:['zhouyu','taishici','daqiao'] }, characterFilter:{ - zuoci:function(){ - return get.mode()!='guozhan'; + zuoci:function(mode){ + return mode!='guozhan'; } }, characterIntro:{ diff --git a/game/game.js b/game/game.js index a48fbe790..5ef08b47c 100644 --- a/game/game.js +++ b/game/game.js @@ -20952,7 +20952,7 @@ if(lib.character[i][4]&&lib.character[i][4].contains('forbidai')) return true; if(lib.character[i][4]&&lib.character[i][4].contains('unseen')) return true; if(lib.config.forbidai.contains(i)) return true; - if(lib.characterFilter[i]&&!lib.characterFilter[i]()) return true; + if(lib.characterFilter[i]&&!lib.characterFilter[i](get.mode())) return true; if(_status.connectMode){ if(lib.configOL.banned.contains(i)) return true; if(lib.config.replacecharacter[i]&&libCharacter&&libCharacter[lib.config.replacecharacter[i]]) return true; @@ -21014,7 +21014,7 @@ if(info[4].contains('minskin')) return true; if(info[4].contains('unseen')) return true; if(info[4].contains('forbidai')&&!_status.event.isMine()) return true; - if(lib.characterFilter[i]&&!lib.characterFilter[i]()) return true; + if(lib.characterFilter[i]&&!lib.characterFilter[i](get.mode())) return true; } return false; }, @@ -36924,7 +36924,7 @@ if(lib.character[i][4].contains('stonehidden')) continue; if(lib.character[i][4].contains('unseen')) continue; if(lib.config.banned.contains(i)) continue; - if(lib.characterFilter[i]&&!lib.characterFilter[i]()) continue; + if(lib.characterFilter[i]&&!lib.characterFilter[i](get.mode())) continue; if(filter&&filter(i)) continue; list.push(i); if(namecapt.indexOf(getCapt(i))==-1){