Skip to content

Commit

Permalink
/setodds: Fix iterating through moves
Browse files Browse the repository at this point in the history
  • Loading branch information
KrisXV authored Oct 9, 2024
1 parent b7ec38d commit 4ed5c3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/chat-plugins/randombattles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ export const commands: Chat.ChatCommands = {

switch (key) {
case 'moves':
for (const rawMove of value.split('~')) {
for (const rawMove of value.split('&')) {
const move = dex.moves.get(rawMove);
if (!move.exists) {
throw new Chat.ErrorMessage(`"${rawMove}" is not a move in the specified format.`);
Expand Down

0 comments on commit 4ed5c3a

Please sign in to comment.