修复谋攻篇模式选将时能选平民的bug

This commit is contained in:
lieren2023 2023-12-05 14:19:00 +08:00 committed by GitHub
parent 05ad271d49
commit d48cd0bcd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1507,7 +1507,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
} }
else{ else{
listi=['random','zhu','zhong','fan','nei']; 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++){ for(var i=0;i<listi.length;i++){
@ -1548,7 +1548,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
} }
else{ else{
var listi=['zhu','zhong','nei','fan']; 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(); link=listi.randomGet();
} }
for(var i=0;i<this.parentNode.childElementCount;i++){ for(var i=0;i<this.parentNode.childElementCount;i++){