mirror of
https://github.com/islehorse/HISP.git
synced 2025-06-08 03:51:28 +12:00
Fixed a bug where you could ride horses without any tack.
This commit is contained in:
parent
3be40efc5e
commit
435ca1b17c
5 changed files with 11 additions and 1 deletions
|
@ -759,6 +759,13 @@ namespace HISP.Server
|
|||
{
|
||||
HorseInstance horseInst = sender.LoggedinUser.HorseInventory.GetHorseById(randomId);
|
||||
|
||||
if(horseInst.Equipment.Saddle == null || horseInst.Equipment.SaddlePad == null || horseInst.Equipment.Bridle == null)
|
||||
{
|
||||
byte[] horseNotTackedMessage = PacketBuilder.CreateChat(Messages.HorseCannotMountUntilTackedMessage, PacketBuilder.CHAT_BOTTOM_RIGHT);
|
||||
sender.SendPacket(horseNotTackedMessage);
|
||||
break;
|
||||
}
|
||||
|
||||
string ridingHorseMessage = Messages.FormatHorseRidingMessage(horseInst.Name);
|
||||
byte[] ridingHorseMessagePacket = PacketBuilder.CreateChat(ridingHorseMessage, PacketBuilder.CHAT_BOTTOM_RIGHT);
|
||||
sender.SendPacket(ridingHorseMessagePacket);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue