forked from 2009Scape/Server
Remove last check preventing Ancient Magicks from working in wilderness.
This commit is contained in:
parent
f2aad1c957
commit
ac14e7a22e
1 changed files with 2 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue