From d903907d7df69835f47212609d0f4daab5bf3f93 Mon Sep 17 00:00:00 2001 From: lieren2023 <131325076+lieren2023@users.noreply.github.com> Date: Fri, 16 Feb 2024 22:17:48 +0800 Subject: [PATCH] =?UTF-8?q?yunchou.js=E5=8D=A1=E7=89=8C=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- card/yunchou.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/card/yunchou.js b/card/yunchou.js index 9b1f55e32..b4405aa5e 100644 --- a/card/yunchou.js +++ b/card/yunchou.js @@ -712,6 +712,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){ type:'delay', cardcolor:'red', cardnature:'fire', + toself:true, modTarget:function(card,player,target){ return lib.filter.judge(card,player,target); }, @@ -724,7 +725,11 @@ game.import('card',function(lib,game,ui,get,ai,_status){ selectTarget:[-1,-1], judge:function(card){ if(get.suit(card)=='heart'&&get.number(card)>1&&get.number(card)<10) return -6; - return 0; + return 1; + }, + judge2:function(result){ + if(result.bool==false) return true; + return false; }, effect:function(){ if(result.bool==false){ @@ -764,6 +769,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){ }, hongshui:{ type:'delay', + toself:true, enable:function(card,player){ return player.canAddJudge(card); }, @@ -776,7 +782,11 @@ game.import('card',function(lib,game,ui,get,ai,_status){ selectTarget:[-1,-1], judge:function(card){ if(get.suit(card)=='club'&&get.number(card)>1&&get.number(card)<10) return -3; - return 0; + return 1; + }, + judge2:function(result){ + if(result.bool==false) return true; + return false; }, fullskin:true, effect:function(){ @@ -932,7 +942,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){ huoshan:'火山', huoshan_info:'出牌阶段,对自己使用。若判定结果为红桃2~9,则目标角色受到2点火焰伤害,距离目标1以内的其他角色受到1点火焰伤害。若判定不为红桃2~9,将之移动到下家的判定区里。', hongshui:'洪水', - hongshui_info:'出牌阶段,对自己使用。若判定结果为梅花2~9,该角色随机弃置三张牌,距离该角色为X的角色随机弃置3-X张牌,若没有牌则失去1点体力。', + hongshui_info:'出牌阶段,对自己使用。若判定结果为梅花2~9,该角色随机弃置三张牌,距离该角色为X的角色随机弃置3-X张牌,若没有牌则失去1点体力。若判定不为梅花2~9,将之移动到下家的判定区里。', }, list:[ ['heart',6,'huoshan','fire'],