From 35c85d93bc69d879b2ff597c5db59efbd87913ef Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 12 Jun 2020 10:51:11 -0400 Subject: [PATCH] Fix --- commands/edit-image/yu-gi-oh-gen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/edit-image/yu-gi-oh-gen.js b/commands/edit-image/yu-gi-oh-gen.js index 761e6667..d3f1fd22 100644 --- a/commands/edit-image/yu-gi-oh-gen.js +++ b/commands/edit-image/yu-gi-oh-gen.js @@ -114,7 +114,7 @@ module.exports = class YuGiOhGenCommand extends Command { ctx.fillStyle = 'white'; ctx.fillRect(0, 0, base.width, base.height); const height = 590 / data.width; - ctx.drawImage(data, 109, 241, 590, height); + ctx.drawImage(data, 109, 241, 590, data.height * height); ctx.drawImage(base, 0, 0); ctx.drawImage(atr, 669, 61, 77, 77); for (let i = 0; i < level; i++) {