fix: Prevent gargoyles from hopping on a mount (#561)
This commit is contained in:
parent
89223e9196
commit
572edf3e48
1 changed files with 12 additions and 3 deletions
|
|
@ -313,10 +313,19 @@ namespace Server.Mobiles
|
||||||
{
|
{
|
||||||
var result = true;
|
var result = true;
|
||||||
|
|
||||||
if (mob is PlayerMobile mobile && mobile.MountBlockReason != BlockMountType.None)
|
if (mob is PlayerMobile mobile)
|
||||||
{
|
{
|
||||||
mobile.SendLocalizedMessage((int)mobile.MountBlockReason);
|
if (mobile.MountBlockReason != BlockMountType.None)
|
||||||
result = false;
|
{
|
||||||
|
mobile.SendLocalizedMessage((int)mobile.MountBlockReason);
|
||||||
|
result = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mobile.Race == Race.Gargoyle)
|
||||||
|
{
|
||||||
|
mobile.PrivateOverheadMessage(MessageType.Regular, mobile.SpeechHue, 1112281, mobile.NetState); // Gargoyles are unable to ride animals.
|
||||||
|
result = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue