From 6121f7d66b2de7afb34845956f1fbcd537e914eb Mon Sep 17 00:00:00 2001 From: jazuo <1421903681@qq.com> Date: Sun, 8 Jan 2023 14:57:42 +0800 Subject: [PATCH] kurou --- lua/server/gamelogic.lua | 2 +- packages/standard/init.lua | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/lua/server/gamelogic.lua b/lua/server/gamelogic.lua index 6c923f74..dd4dbf2b 100644 --- a/lua/server/gamelogic.lua +++ b/lua/server/gamelogic.lua @@ -135,7 +135,7 @@ function GameLogic:prepareForStart() end for _, p in ipairs(room.alive_players) do - room:handleAddLoseSkills(p, "zhiheng|mashu|fankui", nil, false) + room:handleAddLoseSkills(p, "zhiheng|mashu|fankui|kurou", nil, false) end self:addTriggerSkill(GameRule) diff --git a/packages/standard/init.lua b/packages/standard/init.lua index 11a30afb..6801e6d2 100644 --- a/packages/standard/init.lua +++ b/packages/standard/init.lua @@ -142,9 +142,22 @@ Fk:loadTranslationTable{ ["lvmeng"] = "吕蒙", } +local kurou = fk.CreateActiveSkill{ + name = "kurou", + card_filter = function(to_select, selected, selected_targets) + return false + end, + on_effect = function(self, room, effect) + local from = room:getPlayerById(effect.from) + room:drawCards(from, 2, self.name) + room:loseHp(from, 1, self.name) + end +} local huanggai = General:new(extension, "huanggai", "wu", 4) +huanggai:addSkill(kurou) Fk:loadTranslationTable{ ["huanggai"] = "黄盖", + ["kurou"] = "苦肉", } local zhouyu = General:new(extension, "zhouyu", "wu", 3)