From f2aad1c95712f2449118b6467ea6fd553dc26ccf Mon Sep 17 00:00:00 2001 From: randy Date: Mon, 11 Nov 2024 18:05:16 -0700 Subject: [PATCH] Allow Ancient Teleports to bypass the isTeleBlocked function so that they work in the wilderness Note that they are still restricted by the checks in the ZoneMonitor file, which does include teleblock checks, as well as specific wilderness levels. --- .../main/core/game/node/entity/player/link/TeleportManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/src/main/core/game/node/entity/player/link/TeleportManager.java b/Server/src/main/core/game/node/entity/player/link/TeleportManager.java index 140ecf405..147337cc5 100644 --- a/Server/src/main/core/game/node/entity/player/link/TeleportManager.java +++ b/Server/src/main/core/game/node/entity/player/link/TeleportManager.java @@ -99,7 +99,7 @@ public class TeleportManager { if (!entity.getZoneMonitor().teleport(teleportType, null)) { return false; } - if (teleportType != -1 && entity.isTeleBlocked()) { + if (teleportType != -1 && type != TeleportType.ANCIENT && entity.isTeleBlocked()) { if (entity.isPlayer()) entity.asPlayer().sendMessage("A magical force has stopped you from teleporting."); return false;