fix(LogicServer): 修复转生等级检查逻辑

- 修改了 NpcTeleport.txt 文件中的转生等级检查逻辑
- 将原有的逻辑改为条件判断,确保只在 zsLevel 存在时进行检查
- 这个修改可以修复转生功能相关的 bug
This commit is contained in:
aixianling
2024-12-19 15:04:54 +08:00
parent 32ede84e3d
commit 4164238d26

View File

@@ -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