From 00a17051028034920b2caad1ee088851c6ad5b59 Mon Sep 17 00:00:00 2001 From: 157 <144450955+PZ157@users.noreply.github.com> Date: Wed, 20 Sep 2023 23:26:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E3=80=90=E6=8C=AB=E9=94=90?= =?UTF-8?q?=E3=80=91ai=EF=BC=9B=E4=BC=98=E5=8C=96=E3=80=90=E9=9A=90?= =?UTF-8?q?=E9=80=B8=E3=80=91ai?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/sp2.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/character/sp2.js b/character/sp2.js index f5c597043..092e14b91 100644 --- a/character/sp2.js +++ b/character/sp2.js @@ -3041,14 +3041,14 @@ game.import('character',function(lib,game,ui,get,ai,_status){ effect:{ target:function(card,player,target,current){ if(get.tag(card,'damage')){ - if(player.hp==target.hp) return; + if(player.hp==target.hp||lib.linked.contains(get.nature(card))) return; var cards=[card]; if(card.cards&&card.cards.length) cards.addArray(card.cards); if(ui.selected.cards.length) cards.addArray(ui.selected.cards); if(player.countCards('h',function(card){ return !cards.contains(card); })==target.countCards('h')) return; - return 'zerotarget'; + return 'zeroplayertarget'; } }, }, @@ -4703,6 +4703,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){ if(num==0) player.awakenSkill('recuorui'); player.gainPlayerCard(target,true,'h'); }, + ai:{ + order:10, + result:{ + player:1, + target:function(player,target){ + if(target.hasSkillTag('noh')) return 0; + return -1; + } + } + } }, reliewei:{ audio:'liewei',