This commit is contained in:
parent
f8d6b19340
commit
013bd76574
|
@ -666,11 +666,22 @@ character.ow={
|
|||
zhiyuan:{
|
||||
trigger:{source:'damageBefore'},
|
||||
check:function(event,player){
|
||||
if(event.player.hp<event.player.maxHp&&ai.get.attitude(player,event.player)<0) return false;
|
||||
player.disabledSkills.temp='zhiyuan';
|
||||
var num=ai.get.damageEffect(event.player,player,player,event.nature)<ai.get.recoverEffect(event.player,player,player);
|
||||
delete player.disabledSkills.temp;
|
||||
return num;
|
||||
player.disableSkill('tmp','zhiyuan');
|
||||
var eff=ai.get.damageEffect(event.player,player,player);
|
||||
var att=ai.get.attitude(player,event.player);
|
||||
var bool=false;
|
||||
if(att>0){
|
||||
if(eff<=0||event.player.hp<event.player.maxHp){
|
||||
bool=true;
|
||||
}
|
||||
}
|
||||
else{
|
||||
if(eff<0&&event.player.hp==event.player.maxHp){
|
||||
bool=true;
|
||||
}
|
||||
}
|
||||
player.enableSkill('tmp','zhiyuan');
|
||||
return bool;
|
||||
},
|
||||
logTarget:'player',
|
||||
filter:function(event,player){
|
||||
|
|
|
@ -18848,7 +18848,7 @@
|
|||
else if(mmr<10){
|
||||
mmr=10;
|
||||
}
|
||||
dialog.add(ui.create.div('','获得'+mmr+'积分'));
|
||||
dialog.add(ui.create.div('','获得 '+mmr+' 积分'));
|
||||
}
|
||||
else{
|
||||
mmr=-30+Math.round(mmr/2);
|
||||
|
@ -18870,7 +18870,7 @@
|
|||
else if(lib.storage.ladder.current>2500){
|
||||
mmr=Math.round(mmr*1.5);
|
||||
}
|
||||
dialog.add(ui.create.div('','失去'+(-mmr)+'积分'));
|
||||
dialog.add(ui.create.div('','失去 '+(-mmr)+' 积分'));
|
||||
}
|
||||
if(_status.ladder_tmp){
|
||||
lib.storage.ladder.current+=40;
|
||||
|
|
Loading…
Reference in New Issue