#W# Tweak: BaseMount Tweak.
This commit is contained in:
parent
42f6426557
commit
bdf78d76b6
1 changed files with 2 additions and 2 deletions
|
|
@ -288,9 +288,9 @@ public abstract partial class BaseMount : BaseCreature, IMount
|
|||
if (mob is PlayerMobile mobile)
|
||||
{
|
||||
|
||||
if (mobile.Region is BaseRegion region && !region.MountsAllowed)
|
||||
if (mobile.Region is BaseRegion { MountsAllowed: false})
|
||||
{
|
||||
mobile.SendMessage("You cannot mount in this region.");
|
||||
mobile.SendLocalizedMessage(1042317); // You may not ride at this time
|
||||
result = false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue