增加【冲应神符】ai

This commit is contained in:
157 2023-10-25 21:15:48 +08:00 committed by GitHub
parent 1ce0f4623a
commit d0089bde64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 0 deletions

View File

@ -13185,6 +13185,24 @@ game.import('character',function(lib,game,ui,get,ai,_status){
content:function(){
trigger.num--;
},
ai:{
effect:{
target:function(card,player,target){
if(typeof card=='object'&&target.storage.gx_chongyingshenfu_effect&&target.getStorage('gx_chongyingshenfu_effect').includes(card.name)&&!target.hasSkillTag('unequip2')&&
get.itemtype(player)!=='player'||!player.hasSkillTag('jueqing',false,target)&&!player.hasSkillTag('unequip',false,{
name:card.name,
target:target,
card:card,
}))){
if(player&&player.hasSkillTag('damageBonus',true,{
target:target,
card:card
})) return 0.5;
return 'zeroplayertarget';
}
}
}
},
onremove:true,
intro:{
content:'受到$造成的伤害-1',