From 624d6342b4effe7f00b98a116c8edac25891f1b4 Mon Sep 17 00:00:00 2001 From: RalphR <1715333874@qq.com> Date: Thu, 24 Oct 2024 22:56:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dmovecard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/server/events/movecard.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/server/events/movecard.lua b/lua/server/events/movecard.lua index b83f6da..21c35e5 100644 --- a/lua/server/events/movecard.lua +++ b/lua/server/events/movecard.lua @@ -113,6 +113,7 @@ function MoveCards:main() ---@param info MoveInfo for _, info in ipairs(data.moveInfo) do room:applyMoveInfo(data, info) + local realFromArea = room:getCardArea(info.cardId) if data.toArea == Card.DrawPile or realFromArea == Card.DrawPile then room:doBroadcastNotify("UpdateDrawPile", #room.draw_pile) end @@ -140,8 +141,6 @@ function MoveCards:main() if name:find("-inarea", 1, true) and type(value) == "table" and table.contains(value, realFromArea) and not table.contains(value, data.toArea) then - p(realFromArea) - p(value) room:setCardMark(currentCard, name, 0) end end -- Gitee