Fix arena joining more than possible

This commit is contained in:
Bluzume 2021-11-05 16:47:00 -04:00
parent a5bab68b03
commit 0cf785817b
2 changed files with 4 additions and 1 deletions

View file

@ -361,6 +361,9 @@ namespace HISP.Game
}
public void AddEntry(User user, HorseInstance horse)
{
if (Entries.Length + 1 > Slots)
return;
if(!UserHasHorseEntered(user))
{
ArenaEntry arenaEntry = new ArenaEntry();

View file

@ -2837,7 +2837,7 @@ namespace HISP.Game
}
message += Messages.FormatArenaCurrentlyTakingEntries(lastHours, lastMinutes, amOrPm, arena.RaceEvery - minutes);
if (arena.Entries.Length > arena.Slots)
if (arena.Entries.Length + 1 > arena.Slots)
{
message += Messages.ArenaCompetitionFull;
}