From 0cfe293ecbd0a726de135ff2e16f082c430c698a Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 24 Mar 2024 14:53:54 -0400 Subject: [PATCH] Fix --- commands/games-sp/whos-that-pokemon.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/games-sp/whos-that-pokemon.js b/commands/games-sp/whos-that-pokemon.js index 4066b794..f552752a 100644 --- a/commands/games-sp/whos-that-pokemon.js +++ b/commands/games-sp/whos-that-pokemon.js @@ -137,12 +137,12 @@ module.exports = class WhosThatPokemonCommand extends Command { const { x, y, width, height } = centerImagePart(pkmn, 200, 200, 30, 39); if (hide) { ctx.globalAlpha = 0.5; - ctx.drawImage(silhouetteCanvas, x - 5, x + 5, width, height); + ctx.drawImage(silhouetteCanvas, x - 5, y + 5, width, height); ctx.globalAlpha = 1; ctx.drawImage(silhouetteCanvas, x, y, width, height); } else { ctx.globalAlpha = 0.5; - ctx.drawImage(silhouetteCanvas, x - 5, x + 5, width, height); + ctx.drawImage(silhouetteCanvas, x - 5, y + 5, width, height); ctx.globalAlpha = 1; ctx.drawImage(pkmn, x, y, width, height); ctx.font = this.client.fonts.get('Pokemon Solid.ttf').toCanvasString(60);