From fde0707f77e98f5da42f43d32b047642a66c33c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B6=85=E7=BA=A7=E5=A6=96=E6=A2=A6=E5=8E=A8?= <12796194+youmuKon-supreme@user.noreply.gitee.com> Date: Fri, 26 Sep 2025 02:13:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E5=A5=BD=E7=9A=84pattern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/1v1_test_mod/skills/yufeng.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkg/1v1_test_mod/skills/yufeng.lua b/pkg/1v1_test_mod/skills/yufeng.lua index 87161ce..f5fe70b 100644 --- a/pkg/1v1_test_mod/skills/yufeng.lua +++ b/pkg/1v1_test_mod/skills/yufeng.lua @@ -68,13 +68,19 @@ yufeng:addEffect(fk.EventPhaseStart, { local judge = { who = player, reason = yufeng.name, - pattern = ".", + pattern = { + [".|.|black,red"] = "good", + [".|.|red"] = "red", + [".|.|black"] = "black", + ["else"] = "bad", + }, } room:judge(judge) - if judge.card.color == Card.Black then + if not judge.results then return false end + if table.contains(judge.results, "black") then player:skip(Player.Play) player:skip(Player.Discard) - elseif judge.card.color == Card.Red then + elseif table.contains(judge.results, "red") then player:skip(Player.Draw) end end, -- Gitee