mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-08-28 20:14:37 -05:00
Hangman: Don't allow filtered words in guesses
This commit is contained in:
@@ -324,6 +324,8 @@ export const commands: Chat.ChatCommands = {
|
||||
createhelp: ["/hangman create [word], [hint] - Makes a new hangman game. Requires: % @ # &"],
|
||||
|
||||
guess(target, room, user) {
|
||||
const word = this.filter(target);
|
||||
if (word !== target) return this.errorReply(`You may not use filtered words in guesses.`);
|
||||
this.parse(`/choose ${target}`);
|
||||
},
|
||||
guesshelp: [
|
||||
|
||||
Reference in New Issue
Block a user