From aa025823909770d40ad12a6939dfeaa1211eb040 Mon Sep 17 00:00:00 2001 From: 157 <3619242020@qq.com> Date: Sun, 4 Feb 2024 09:53:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E3=80=90=E5=AE=88=E6=88=90=E3=80=91ai?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/huicui.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/character/huicui.js b/character/huicui.js index 83ee125f6..c0366dd71 100644 --- a/character/huicui.js +++ b/character/huicui.js @@ -187,10 +187,18 @@ game.import('character',function(lib,game,ui,get,ai,_status){ ai:{ noh:true, skillTagFilter(player,tag,arg){ - if(player.countCards('h')!==1) return false; + if(player===_status.currentPhase||player.countCards('h')!==1) return false; return game.hasPlayer(current=>{ return current.hasSkill('dcshoucheng')&&get.attitude(current,player)>0; }); + }, + effect:{ + target(card,player,target){ + if(target===_status.currentPhase||target.countCards('h')!==1||!game.hasPlayer(current=>{ + return current.hasSkill('dcshoucheng')&&get.attitude(current,target)>0; + })) return; + if(get.tag(card,'lose')||get.tag(card,'discard')) return [1,1.6]; + } } } }