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,