When you guess a letter in hangman, updated message will now correctly show previous guesses. closes #1541

This commit is contained in:
Master Kwoth 2017-09-10 23:48:34 +02:00
parent 4adf85a9eb
commit 1af4679d9e

View File

@ -113,7 +113,8 @@ namespace NadekoBot.Modules.Games
private Task Hm_OnGuessSucceeded(Hangman game, string user, char guess)
{
return Context.Channel.SendConfirmAsync($"Hangman Game ({game.TermType})", $"{user} guessed a letter `{guess}`!\n" + game.ScrambledWord + "\n" + game.GetHangman());
return Context.Channel.SendConfirmAsync($"Hangman Game ({game.TermType})", $"{user} guessed a letter `{guess}`!\n" + game.ScrambledWord + "\n" + game.GetHangman(),
footer: string.Join(" ", game.PreviousGuesses));
}
private Task Hm_OnGuessFailed(Hangman game, string user, char guess)