修改左慈/界左慈【化身】遇到含audioname的技能也能引用对应武将的配音
This commit is contained in:
parent
5d7d67b929
commit
bd31cc0dee
|
@ -10548,6 +10548,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
player.popup(link);
|
player.popup(link);
|
||||||
player.syncStorage('rehuashen');
|
player.syncStorage('rehuashen');
|
||||||
player.updateMarks('rehuashen');
|
player.updateMarks('rehuashen');
|
||||||
|
var skills=game.expandSkills([link]);
|
||||||
|
skills.forEach(skill=>{
|
||||||
|
if(lib.skill.rehuashen.checkAudio(event.card,skill,'re_zuoci')){
|
||||||
|
lib.skill.rehuashen.createAudio(event.card,skill,'re_zuoci');
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
init:function(player,skill){
|
init:function(player,skill){
|
||||||
|
@ -10663,6 +10669,17 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
}
|
}
|
||||||
return node;
|
return node;
|
||||||
},
|
},
|
||||||
|
checkAudio:(character,skill,name)=>{
|
||||||
|
var info=get.info(skill);
|
||||||
|
if(!info||((!info.audioname||!info.audioname.includes(character))&&(!info.audioname2||!info.audioname2[character]))) return false;
|
||||||
|
return !info.audioname2||!info.audioname2[name];
|
||||||
|
},
|
||||||
|
createAudio:(character,skill,name)=>{
|
||||||
|
var info=lib.skill[skill];
|
||||||
|
if(!info.audioname2) info.audioname2={};
|
||||||
|
if(!lib.skill[skill+'_'+character]) lib.skill[skill+'_'+character]={audio:2};
|
||||||
|
info.audioname2[name]=(skill+'_'+character);
|
||||||
|
},
|
||||||
mark:true,
|
mark:true,
|
||||||
intro:{
|
intro:{
|
||||||
onunmark:function(storage,player){
|
onunmark:function(storage,player){
|
||||||
|
|
|
@ -4459,6 +4459,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
player.popup(skill);
|
player.popup(skill);
|
||||||
player.syncStorage('huashen');
|
player.syncStorage('huashen');
|
||||||
player.updateMarks('huashen');
|
player.updateMarks('huashen');
|
||||||
|
var skills=game.expandSkills([skill]);
|
||||||
|
skills.forEach(skillx=>{
|
||||||
|
if(lib.skill.rehuashen.checkAudio(character,skillx,'zuoci')){
|
||||||
|
lib.skill.rehuashen.createAudio(character,skillx,'zuoci');
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue