diff --git a/pkg/1v1_test_mod/skills/yufeng.lua b/pkg/1v1_test_mod/skills/yufeng.lua index 87161cefe197390ec88c7f8f94e56fa2a8d25554..f5fe70bee0c0b68e66acd6b559b5f6fea8b94337 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,