Merge pull request #720 from lieren2023/lieren2023-patch-2
修复谋攻篇模式选将时能选平民的bug
This commit is contained in:
commit
5f3a4474fb
|
@ -1517,7 +1517,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++){
|
||||||
|
@ -1558,7 +1558,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++){
|
||||||
|
|
Loading…
Reference in New Issue