TW何进【谋诛】ai
This commit is contained in:
parent
9cb14a702d
commit
afa6bb79ac
|
@ -12089,6 +12089,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
group:'twfengpo_kill',
|
group:'twfengpo_kill',
|
||||||
subSkill:{
|
subSkill:{
|
||||||
kill:{
|
kill:{
|
||||||
|
audio:'fengpo',
|
||||||
trigger:{source:'die'},
|
trigger:{source:'die'},
|
||||||
forced:true,
|
forced:true,
|
||||||
filter:(event,player)=>!player.storage.twfengpo,
|
filter:(event,player)=>!player.storage.twfengpo,
|
||||||
|
@ -12096,6 +12097,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
animationColor:'fire',
|
animationColor:'fire',
|
||||||
content:function(){
|
content:function(){
|
||||||
player.storage.twfengpo=true;
|
player.storage.twfengpo=true;
|
||||||
|
player.popup('凤魄');
|
||||||
|
game.log(player,'恢复了技能','#g【凤魄】');
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -12166,6 +12169,21 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
isCard:true,
|
isCard:true,
|
||||||
},false,target).baseDamage=num;
|
},false,target).baseDamage=num;
|
||||||
},
|
},
|
||||||
|
ai:{
|
||||||
|
order:9,
|
||||||
|
result:{
|
||||||
|
target:function(player,target){
|
||||||
|
if(get.attitude(player,target)>=0) return 0;
|
||||||
|
var list=game.filterPlayer(function(current){
|
||||||
|
return current!=player&¤t!=target&¤t.hp<=player.hp;
|
||||||
|
});
|
||||||
|
if(!list.length) return 0;
|
||||||
|
return -Math.min(-get.effect(target,{name:'sha'},player,target),-get.effect(target,{name:'juedou'},player,target))*list.reduce(function(num,current){
|
||||||
|
return num+(2+get.sgn(get.attitude(current,player)));
|
||||||
|
},0);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
twyanhuo:{
|
twyanhuo:{
|
||||||
audio:'yanhuo',
|
audio:'yanhuo',
|
||||||
|
|
Loading…
Reference in New Issue