Fix %CALL HORSE%

This commit is contained in:
Li 2022-05-08 17:22:58 +12:00
parent 479b539b44
commit f8d8e8f28d

View file

@ -783,14 +783,14 @@ namespace HISP.Game.Chat
return false;
if (args.Length <= 0)
return;
return false;
string formattedmessage = "";
try
{
if (args[0].ToUpper() != "HORSE")
return false;
string formattedmessage = Messages.FormatPlayerCommandCompleteMessage(message);
formattedmessage = Messages.FormatPlayerCommandCompleteMessage(message);
WildHorse horse = WildHorse.WildHorses[GameServer.RandomNumberGenerator.Next(0, WildHorse.WildHorses.Length)];
horse.X = user.X;