forked from 2009Scape/Server
Remove another check preventing Ancient magick teleport spells from working in the wilderness for non-admins.
This commit is contained in:
parent
6e91725d58
commit
06055c0ff8
1 changed files with 4 additions and 0 deletions
|
|
@ -233,6 +233,10 @@ public final class WildernessZone extends MapZone {
|
|||
if (p.getDetails().getRights() == Rights.ADMINISTRATOR) {
|
||||
return true;
|
||||
}
|
||||
// Snowscape: one of the checks needed to allow Ancient spells to work deeper in the wilderness.
|
||||
if (type == 0 && p.getSpellBookManager().getSpellBook() == 193 && checkTeleport(p, 48)) {
|
||||
return true;
|
||||
}
|
||||
if (!checkTeleport(p, (node != null && node instanceof Item && (((Item) node).getName().contains("glory") || ((Item) node).getName().contains("slaying")) ? 30 : 20))) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue