司马师【擅立】取消zhuSkill的storage,添加isZhu2()判定后的zhuUpdate时机
This commit is contained in:
parent
1addbb43ec
commit
bff8e2934d
|
@ -3243,7 +3243,57 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
multitarget:true,
|
||||
targetprompt:['伤害来源','受伤角色'],
|
||||
content:function(){
|
||||
targets[1].damage(targets[0],'unreal');
|
||||
targets[1].damage(targets[0]).setContent(lib.skill.guanzong.viewAsDamageContent);
|
||||
},
|
||||
viewAsDamageContent:function(){
|
||||
'step 0'
|
||||
if(lib.config.background_audio){
|
||||
game.playAudio('effect','damage'+(num>1?'2':''));
|
||||
}
|
||||
game.broadcast(function(num){
|
||||
if(lib.config.background_audio){
|
||||
game.playAudio('effect','damage'+(num>1?'2':''));
|
||||
}
|
||||
},num);
|
||||
var str='视为受到了';
|
||||
if(source) str+='来自<span class="bluetext">'+(source==player?'自己':get.translation(source))+'</span>的';
|
||||
str+=get.cnNumber(num)+'点';
|
||||
if(event.nature) str+=get.translation(event.nature)+'属性';
|
||||
str+='伤害';
|
||||
game.log(player,str);
|
||||
if(player.stat[player.stat.length-1].damaged==undefined){
|
||||
player.stat[player.stat.length-1].damaged=num;
|
||||
}
|
||||
else {
|
||||
player.stat[player.stat.length-1].damaged+=num;
|
||||
}
|
||||
if(source){
|
||||
source.getHistory('sourceDamage').push(event);
|
||||
if(source.stat[source.stat.length-1].damage==undefined){
|
||||
source.stat[source.stat.length-1].damage=num;
|
||||
}
|
||||
else {
|
||||
source.stat[source.stat.length-1].damage+=num;
|
||||
}
|
||||
}
|
||||
player.getHistory('damage').push(event);
|
||||
if(event.animate!==false){
|
||||
player.$damage(source);
|
||||
game.broadcastAll(function(nature,player){
|
||||
if(lib.config.animation&&!lib.config.low_performance){
|
||||
if(nature=='fire'){
|
||||
player.$fire();
|
||||
}
|
||||
else if(nature=='thunder'){
|
||||
player.$thunder();
|
||||
}
|
||||
}
|
||||
},event.nature,player);
|
||||
var numx=Math.max(0,num-player.hujia);
|
||||
player.$damagepop(-numx,'gray');
|
||||
}
|
||||
'step 1'
|
||||
event.trigger('damageSource');
|
||||
},
|
||||
ai:{
|
||||
result:{
|
||||
|
@ -7688,8 +7738,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
player.chooseControl(skills).set('dialog',['选择令'+get.translation(target)+'获得一个技能',[chara,'character']]);
|
||||
'step 2'
|
||||
target.addSkillLog(result.control);
|
||||
target.storage.zhuSkill_shanli=[result.control];
|
||||
target.setAvatarQueue(target.name1||target.name,[event.chara[event.skills.indexOf(result.control)]]);
|
||||
'step 3'
|
||||
if(target.isZhu2()) event.trigger('zhuUpdate');
|
||||
},
|
||||
},
|
||||
hongyi:{
|
||||
|
|
Loading…
Reference in New Issue