From 660b74d8aaf1144868a04106424cbcc897692cf7 Mon Sep 17 00:00:00 2001 From: PZ157 <3619242020@qq.com> Date: Tue, 7 Nov 2023 21:49:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=83=A8=E5=88=86=E6=8A=80?= =?UTF-8?q?=E8=83=BDai?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rezhenjun不能对无牌角色发动技能; 增加xindanxin卖血ai --- character/yijiang.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/character/yijiang.js b/character/yijiang.js index d135fe7f5..d9307920a 100755 --- a/character/yijiang.js +++ b/character/yijiang.js @@ -3304,7 +3304,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){ direct:true, content:function (){ 'step 0' - player.chooseTarget(get.prompt2('rezhenjun')).ai=function(target){ + player.chooseTarget(get.prompt2('rezhenjun'),(card,player,target)=>{ + return target.countCards('he'); + }).ai=function(target){ return -get.attitude(_status.event.player,target)*(target.countCards('e')+1); }; 'step 1' @@ -6121,6 +6123,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){ player.popup('更改描述'); player.addMark('xindanxin',1,false); } + }, + ai:{ + maixie:true, + effect:{ + target:(card,player,target)=>{ + if(!get.tag(card,'damage')) return; + if(target.hp<2||player.hasSkillTag('jueqing',false,target)) return -1.5; + return [1,1]; + } + } } }, zongzuo:{