循环战斗动画

This commit is contained in:
草莓 2025-02-01 00:31:19 +08:00
parent 396abfe222
commit 3f53086c9f

View File

@ -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, () => {