From bdaea329a4ee943f95601ca801695d56b8b287dc Mon Sep 17 00:00:00 2001 From: RalphR <1715333874@qq.com> Date: Sat, 16 Nov 2024 14:07:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/core/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/core/util.lua b/lua/core/util.lua index f0084ab..ebc293b 100644 --- a/lua/core/util.lua +++ b/lua/core/util.lua @@ -167,7 +167,7 @@ end --- 指定目标卡牌的targetFilter Util.TargetFilter = function(self, to_select, selected, selected_cards, card, extra_data) - if not self:modTargetFilter(to_select, selected, Self.id, card, true) then return end + if not self:modTargetFilter(to_select, selected, Self.id, card, not (extra_data and extra_data.bypass_distances)) then return end if #selected >= self:getMaxTargetNum(Self, card) then return end if Self:isProhibited(Fk:currentRoom():getPlayerById(to_select), card) then return end extra_data = extra_data or {} -- Gitee