From 058f7088b380fa558e1957b6192bcb82f7cd5e9d Mon Sep 17 00:00:00 2001 From: strawberry42271 <2806566736@qq.com> Date: Wed, 5 Feb 2025 14:48:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B9=E6=99=94=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E4=BB=A3=E7=A0=81=E5=AF=BC=E8=87=B4=E7=9A=84=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=99=A8bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/functions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/functions.js b/project/functions.js index 014cf56..a9ae699 100644 --- a/project/functions.js +++ b/project/functions.js @@ -965,11 +965,11 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = //——第二部分:变量定义和初始赋值—— // 每回合怪物对勇士造成的战斗伤害 let per_damage = Math.max(mon_atk - hero_def, 0); - if (enemyInfo.magic) per_damage = Math.max(mon_atk - hero_mdef, 0); + //if (enemyInfo.magic) per_damage = Math.max(mon_atk - hero_mdef, 0); // let hero_per_damage = Math.max(hero_atk - mon_def, 0); - if (hero_magic) hero_per_damage = Math.max(hero_atk - mon_mdef, 0); + //if (hero_magic) hero_per_damage = Math.max(hero_atk - mon_mdef, 0); let damage = 0, hero_turn = 0,