Moving fishing level check from zone to effect.

This commit is contained in:
MobiusDev
2015-05-17 16:51:46 +00:00
parent 688164f377
commit 5fbcd41959
2 changed files with 27 additions and 29 deletions

View File

@ -134,6 +134,12 @@ public final class Fishing extends AbstractEffect
return;
}
if (player.getLevel() < 85)
{
player.sendMessage("You must be level 85 or higher to fish.");
return;
}
// calculate a position in front of the player with a random distance
int distance = Rnd.get(MIN_BAIT_DISTANCE, MAX_BAIT_DISTANCE);
final double angle = Util.convertHeadingToDegree(player.getHeading());