From ac14e7a22e7635d955fa8dd22e001a1ced50a144 Mon Sep 17 00:00:00 2001 From: randy Date: Mon, 11 Nov 2024 18:29:55 -0700 Subject: [PATCH] Remove last check preventing Ancient Magicks from working in wilderness. --- .../global/skill/magic/ancient/AncientTeleportPlugin.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Server/src/main/content/global/skill/magic/ancient/AncientTeleportPlugin.java b/Server/src/main/content/global/skill/magic/ancient/AncientTeleportPlugin.java index 3944c3c7e..ec6c8999c 100644 --- a/Server/src/main/content/global/skill/magic/ancient/AncientTeleportPlugin.java +++ b/Server/src/main/content/global/skill/magic/ancient/AncientTeleportPlugin.java @@ -51,10 +51,12 @@ public final class AncientTeleportPlugin extends MagicSpell { @Override public boolean cast(Entity entity, Node target) { + /* Snowscape Custom to allow teleporting in wilderness. The teleport limitations are still checked later by the send() function, so this is not if (entity.isTeleBlocked() || !super.meetsRequirements(entity, true, false)) { entity.asPlayer().sendMessage("A magical force has stopped you from teleporting."); return false; } + */ if (entity.getTeleporter().send(location.transform(0, RandomFunction.random(3), 0), getSpellId() == 28 ? TeleportType.HOME : TeleportType.ANCIENT)) { if (!super.meetsRequirements(entity, true, true)) { entity.getTeleporter().getCurrentTeleport().stop();