From 62761d5700071e959e1dd89997aebf6128f9486e Mon Sep 17 00:00:00 2001
From: Mistivia <i@mistivia.com>
Date: Sat, 4 Oct 2025 13:25:57 +0800
Subject: fix def number

---
 src/left_panel.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/left_panel.js b/src/left_panel.js
index fc8d808..4a60de5 100644
--- a/src/left_panel.js
+++ b/src/left_panel.js
@@ -141,7 +141,7 @@ function toEnglish(meta) {
             ret += ' | ATK ' + meta.atk.toString();
         }
         if (meta.hasOwnProperty('def')) {
-            ret += ' | DEF ' + meta.atk.toString();
+            ret += ' | DEF ' + meta.def.toString();
         }
         if (meta.hasOwnProperty('link_arrows')) {
             ret += ' | [' + meta.link_arrows.join(' ') + ']'
@@ -209,7 +209,7 @@ function toJapanese(meta) {
             ret += ' | ATK ' + meta.atk.toString();
         }
         if (meta.hasOwnProperty('def')) {
-            ret += ' | DEF ' + meta.atk.toString();
+            ret += ' | DEF ' + meta.def.toString();
         }
         if (meta.hasOwnProperty('link_arrows')) {
             ret += ' | [' + meta.link_arrows.join(' ') + ']'
-- 
cgit v1.0

