From 3f53086c9fd6bba51dc7c200305cc06f5d09fa57 Mon Sep 17 00:00:00 2001 From: strawberry42271 <2806566736@qq.com> Date: Sat, 1 Feb 2025 00:31:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AA=E7=8E=AF=E6=88=98=E6=96=97=E5=8A=A8?= =?UTF-8?q?=E7=94=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/plugins.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/project/plugins.js b/project/plugins.js index 64da3ac..146dd94 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -18821,7 +18821,6 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = ctx.closePath() ctx.fill() - console.log(heronow) core.drawImage(ctx, "hero.webp", 0, @@ -18833,7 +18832,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = 32, 19) - if (heroInfo.now >= 215) { + if (heroInfo.now >= 215 && !heroInfo.isAttack) { heroInfo.isAttack = true; animateOnAttack("sword", true, () => { heroInfo.now -= 215 @@ -18842,7 +18841,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = }) } - if (enemyInfo.now >= 215) { + if (enemyInfo.now >= 215 && !enemyInfo.isAttack) { enemyInfo.isAttack = true animateOnAttack("sword", false, () => { enemyInfo.now -= 215 @@ -18851,7 +18850,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = }) } equipInfo.forEach(v => { - if (v.now >= 215) { + if (v.now >= 215 && !v.isAttack) { v.isAttack = true animateOnAttack("sword", true, () => {