TW何进【谋诛】ai

This commit is contained in:
mengxinzxz 2023-09-14 22:53:47 +08:00 committed by GitHub
parent 9cb14a702d
commit afa6bb79ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -12089,6 +12089,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
group:'twfengpo_kill',
subSkill:{
kill:{
audio:'fengpo',
trigger:{source:'die'},
forced:true,
filter:(event,player)=>!player.storage.twfengpo,
@ -12096,6 +12097,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
animationColor:'fire',
content:function(){
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,
},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&&current!=target&&current.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:{
audio:'yanhuo',