Fix Trainer

This commit is contained in:
Bluzume 2021-11-26 22:26:06 -05:00
parent 318fde344c
commit 2699682228
2 changed files with 4 additions and 3 deletions

View file

@ -241,7 +241,7 @@ namespace HISP.Game.Chat
}
else
{
User player = findNamePartial(args[2]);
User player = findNamePartial(args[1]);
player.LoggedinClient.SendPacket(packetBytes);
}
}

View file

@ -231,7 +231,8 @@ namespace HISP.Game
user.HorseWindowOpen = false;
string message = "";
message += buildPlayersHere(user, x, y);
message += buildNearbyString(x, y, (message != ""));
bool playersHere = (GameServer.GetUsersAt(x, y, true, true).Length >= 1);
message += buildNearbyString(x, y, playersHere);
// Dropped Items
DroppedItems.DroppedItem[] Items = DroppedItems.GetItemsAt(x, y);
@ -2701,7 +2702,7 @@ namespace HISP.Game
break;
}
if((statCalculator.BreedValue + trainer.ImprovesAmount) < statCalculator.MaxValue)
if(statCalculator.BreedValue < statCalculator.MaxValue)
message += Messages.FormatTrainerTrainInEntry(horse.Name, statCalculator.BreedValue, statCalculator.MaxValue, horse.RandomId);
else
message += Messages.FormatTrainerFullyTrained(horse.Name, statCalculator.BreedValue);