From f9b5bcda11857d0ba0293f0dbfd04692cc9d7db9 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 21 Nov 2020 20:29:33 -0500 Subject: [PATCH] Fix --- commands/edit-image/yu-gi-oh-gen.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/edit-image/yu-gi-oh-gen.js b/commands/edit-image/yu-gi-oh-gen.js index ba26cabd..a28aadf1 100644 --- a/commands/edit-image/yu-gi-oh-gen.js +++ b/commands/edit-image/yu-gi-oh-gen.js @@ -140,7 +140,8 @@ module.exports = class YuGiOhGenCommand extends Command { ctx.fillText(typeStr, 60, 894); ctx.font = '29px Stone Serif'; ctx.fillText(atk.padStart(4, ' '), 514, 1079); - ctx.fillText(def.padStart(4, ' '), monsterType === 'link' ? 722 : 675, 1079); + if (monsterType === 'link') ctx.fillText(def, 722, 1079); + else ctx.fillText(def.padStart(4, ' '), 675, 1079); } else if (type === 'spell') { ctx.font = '35px Stone Serif Small Caps'; ctx.fillText('[ Spell Card ]', 479, 141);