This commit is contained in:
mengxinzxz 2023-11-18 20:21:46 +08:00
parent a4ccec46d2
commit 024dcf304f
1 changed files with 3 additions and 3 deletions

View File

@ -281,9 +281,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
player.awakenSkill('sbhuoji'); player.awakenSkill('sbhuoji');
game.log(player,'成功完成使命'); game.log(player,'成功完成使命');
var list=[]; var list=[];
if(player.name&&get.character(player.name)[1].includes('sbhuoji')) list.add(player.name); if(player.name&&get.character(player.name)[3].includes('sbhuoji')) list.add(player.name);
if(player.name1&&get.character(player.name1)[1].includes('sbhuoji')) list.add(player.name1); if(player.name1&&get.character(player.name1)[3].includes('sbhuoji')) list.add(player.name1);
if(player.name2&&get.character(player.name2)[1].includes('sbhuoji')) list.add(player.name2); if(player.name2&&get.character(player.name2)[3].includes('sbhuoji')) list.add(player.name2);
if(list.length) list.forEach(name=>player.reinit(name,'sb_zhugeliang')); if(list.length) list.forEach(name=>player.reinit(name,'sb_zhugeliang'));
else{ else{
player.removeSkill(['sbhuoji','sbkanpo']); player.removeSkill(['sbhuoji','sbkanpo']);