fix(NpcTeleport): 修复转生等级检查逻辑
- 调整 Actor.checkActorLevel 函数的参数顺序,以正确检查转生等级 - 此修改确保 NPC 传送功能在满足转生等级要求时正常运作
This commit is contained in:
@@ -123,7 +123,7 @@ if NetmsgDispatcher then
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- 检查转生
|
-- 检查转生
|
||||||
local zs = config.zsLevel and Actor.checkActorLevel(actor, 0, config.zsLevel)
|
local zs = config.zsLevel and Actor.checkActorLevel(actor,config.zsLevel, 0)
|
||||||
--local tips = string.format(Lang.TisMsg.xxx, config.nLevel)
|
--local tips = string.format(Lang.TisMsg.xxx, config.nLevel)
|
||||||
--Actor.sendTipmsg(actor, "等级不足!", ttFlyTip)
|
--Actor.sendTipmsg(actor, "等级不足!", ttFlyTip)
|
||||||
if editionConf.suit == System.getServerId() and config.suit then
|
if editionConf.suit == System.getServerId() and config.suit then
|
||||||
|
|||||||
Reference in New Issue
Block a user