修复替补模式下四号位更换武将不重新获得【飞扬】的bug

This commit is contained in:
mengxinzxz 2023-12-02 10:28:57 +08:00
parent b98264abe1
commit d4198cb58a
1 changed files with 6 additions and 0 deletions

View File

@ -7068,10 +7068,16 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
if(this.replacetwo){ if(this.replacetwo){
game.replacePlayerTwo(this,this.replacetwo); game.replacePlayerTwo(this,this.replacetwo);
delete this.replacetwo; delete this.replacetwo;
if(get.config('olfeiyang_four')&&this==_status.firstAct.previous){
this.addSkill('olfeiyang');
}
} }
else if(friend&&friend.replacetwo){ else if(friend&&friend.replacetwo){
game.replacePlayerTwo(this,friend.replacetwo); game.replacePlayerTwo(this,friend.replacetwo);
delete friend.replacetwo; delete friend.replacetwo;
if(get.config('olfeiyang_four')&&friend==_status.firstAct.previous){
friend.addSkill('olfeiyang');
}
} }
else{ else{
game.over(this.side!=me.side); game.over(this.side!=me.side);