diff --git a/src/modules/loldle/handlers.js b/src/modules/loldle/handlers.js index 6b1f038..a4927cd 100644 --- a/src/modules/loldle/handlers.js +++ b/src/modules/loldle/handlers.js @@ -118,6 +118,13 @@ export async function handleLoldle(ctx, db) { const guess = findChampion(champions, arg); if (!guess) return ctx.reply(`Champion not found: "${arg}".`); + if (game.guesses.some((g) => g.champion === guess.name)) { + return ctx.reply( + `🔁 ${escapeHtml(guess.name)} was already guessed this round — try another champion.`, + { parse_mode: "HTML" }, + ); + } + const target = champions.find((c) => c.id === game.target); // champions.json can be refreshed between rounds — an active target may disappear. if (!target) {