Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Commit

Permalink
Merge pull request #476
Browse files Browse the repository at this point in the history
FIX #475
  • Loading branch information
JoeAlisson authored Dec 5, 2020
2 parents f309094 + fb9ecdc commit 854b770
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private void teleport(TeleportData info) {
return;
}

if(GameUtils.canTeleport(player) && (player.getLevel() <= 40 || player.reduceAdena("Teleport", info.getPrice(), null, true))) {
if(GameUtils.canTeleport(player) && (player.getLevel() <= Config.MAX_FREE_TELEPORT_LEVEL || player.reduceAdena("Teleport", info.getPrice(), null, true))) {
player.addRequest(new TeleportRequest(player, id));
player.useMagic(CommonSkill.TELEPORT.getSkill(), null, false, true);
}
Expand Down

0 comments on commit 854b770

Please sign in to comment.