From 4164238d26374c81b8b05b01d687dd4d128cad01 Mon Sep 17 00:00:00 2001 From: aixianling Date: Thu, 19 Dec 2024 15:04:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(LogicServer):=20=E4=BF=AE=E5=A4=8D=E8=BD=AC?= =?UTF-8?q?=E7=94=9F=E7=AD=89=E7=BA=A7=E6=A3=80=E6=9F=A5=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改了 NpcTeleport.txt 文件中的转生等级检查逻辑 - 将原有的逻辑改为条件判断,确保只在 zsLevel 存在时进行检查 - 这个修改可以修复转生功能相关的 bug --- LogicServer/data/functions/NpcEvent/NpcTeleport.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LogicServer/data/functions/NpcEvent/NpcTeleport.txt b/LogicServer/data/functions/NpcEvent/NpcTeleport.txt index 8cdca2d..d222109 100755 --- a/LogicServer/data/functions/NpcEvent/NpcTeleport.txt +++ b/LogicServer/data/functions/NpcEvent/NpcTeleport.txt @@ -123,7 +123,7 @@ if NetmsgDispatcher then end -- 检查转生 - local zs = config.zsLevel or Actor.checkActorLevel(actor, 0, config.zsLevel) + local zs = config.zsLevel and Actor.checkActorLevel(actor, 0, config.zsLevel) --local tips = string.format(Lang.TisMsg.xxx, config.nLevel) --Actor.sendTipmsg(actor, "等级不足!", ttFlyTip) if editionConf.suit == System.getServerId() and config.suit then