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