This commit is contained in:
Dragon Fire
2020-11-21 21:16:52 -05:00
parent ec9fbfcd34
commit 134836de7e
+1 -1
View File
@@ -151,7 +151,7 @@ module.exports = class YuGiOhGenCommand extends Command {
}
ctx.font = monsterType === 'normal' ? '27px Stone Serif LT Italic' : '27px Matrix Book';
const wrappedEffect = await wrapText(ctx, effect, 690);
const trimmed = wrappedEffect.slice(0, (type === 'monster' ? 4 : 6));
const trimmed = wrappedEffect.slice(0, type === 'monster' ? 4 : 6);
ctx.fillText(trimmed.join('\n'), 63, 933 - (type === 'monster' ? 0 : 34));
ctx.font = '22px Stone Serif';
ctx.fillStyle = monsterType === 'xyz' ? 'white' : 'black';