Skip to content

Commit

Permalink
sacrifice fix
Browse files Browse the repository at this point in the history
  • Loading branch information
XeIris committed Nov 12, 2024
1 parent 92d9fc5 commit 0ec20ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion commands/sacrifice.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ class Sacrifice extends Command {
await this.client.db.sacrificePokemon(userId, pokemon2);
await this.client.db.sacrificePokemon(userId, pokemon3);

await this.client.summonPokemon(interaction);
const handler = await this.client.getHandler(); // Get the current seasonal handler
await handler.summonPokemon(interaction); // Use handler's summonPokemon with the specified mode
}
}

Expand Down

0 comments on commit 0ec20ff

Please sign in to comment.