Merge pull request #720 from lieren2023/lieren2023-patch-2

修复谋攻篇模式选将时能选平民的bug
This commit is contained in:
Spmario233 2023-12-13 20:57:06 +08:00 committed by GitHub
commit 5f3a4474fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1517,7 +1517,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}
else{
listi=['random','zhu','zhong','fan','nei'];
if(get.config('enable_commoner')) listi.push('commoner');
if(get.config('enable_commoner')&&!event.stratagemMode) listi.push('commoner');
}
for(var i=0;i<listi.length;i++){
@ -1558,7 +1558,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
}
else{
var listi=['zhu','zhong','nei','fan'];
if(get.config('enable_commoner')) listi.push('commoner');
if(get.config('enable_commoner')&&!event.stratagemMode) listi.push('commoner');
link=listi.randomGet();
}
for(var i=0;i<this.parentNode.childElementCount;i++){