ModernUO/Projects/UOContent/Regions/NoTravelSpellsAllowedRegion.cs
2020-08-27 18:30:38 -07:00

15 lines
429 B
C#

using System.Text.Json;
using Server;
using Server.Json;
using Server.Regions;
using Server.Spells;
public class NoTravelSpellsAllowedRegion : DungeonRegion
{
public NoTravelSpellsAllowedRegion(DynamicJson json, JsonSerializerOptions options) : base(json, options)
{
}
public override bool CheckTravel(Mobile m, Point3D newLocation, TravelCheckType travelType) =>
m.AccessLevel == AccessLevel.Player;
}