From 3a81cdecaa24e4f1bc94ddc6d6f7f5aef21f6803 Mon Sep 17 00:00:00 2001 From: 157 <144450955+PZ157@users.noreply.github.com> Date: Sat, 23 Sep 2023 21:29:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E7=8E=8B=E5=BC=82=E3=80=90=E7=A7=98=E8=AE=A1=E3=80=91ai?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/yijiang.js | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/character/yijiang.js b/character/yijiang.js index 33c10f6da..486dd53e9 100755 --- a/character/yijiang.js +++ b/character/yijiang.js @@ -11532,6 +11532,14 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }, miji:{ audio:2, + mod:{ + aiOrder:function(player,card,num){ + if(num>0&&_status.event&&_status.event.type==='phase'&&get.tag(card,'recover')){ + if(player.needsToDiscard()) return num/3; + return 0; + } + } + }, trigger:{player:'phaseJieshuBegin'}, filter:function(event,player){ return player.hp=player.maxHp-1) return [0,0]; + if(target.hp<=2&&get.tag(card,'damage')){ + var num=1; + if(get.itemtype(player)=='player'&&player.hasSkillTag('damageBonus',false,{ + target:target, + card:card + })&&!target.hasSkillTag('filterDamage',null,{ + player:player, + card:card + })) num=2; + if(target.hp>num) return [1,1]; + } } } }