From f341c7736bc429b5caf0b1e12f7f5b05bc542850 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 29 Mar 2024 16:51:04 -0400 Subject: [PATCH] Fix --- commands/pokedex/pokedex-box-sprite.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/pokedex/pokedex-box-sprite.js b/commands/pokedex/pokedex-box-sprite.js index 322023ae..5ca9be2d 100644 --- a/commands/pokedex/pokedex-box-sprite.js +++ b/commands/pokedex/pokedex-box-sprite.js @@ -73,7 +73,7 @@ module.exports = class PokedexBoxSpriteCommand extends Command { const x = 40 * (this.id % 12); const y = Math.floor(this.id / 12) * 30; ctx.imageSmoothingEnabled = false; - ctx.drawImage(this.store.sprites, x, y, 40, 30, 0, 0, 250, 250); + ctx.drawImage(this.client.pokemon.sprites, x, y, 40, 30, 0, 0, 250, 250); cropToContent(ctx, canvas.width, canvas.height); return msg.say(`#${pokemon.displayID} - ${pokemon.name}`, { files: [{