Bro Wo: hapus pohon tempelan di tangan saat mengamuk (aura dan bonus tetap)

This commit is contained in:
rizkyaz0 2026-10-01 12:25:11 +07:00
parent 41421b7c2a
commit 87de6cb108
1 changed files with 0 additions and 9 deletions

View File

@ -1642,15 +1642,6 @@
const a = key === 'player' ? hero : dummy; if (!bwAlive(a)) continue; const a = key === 'player' ? hero : dummy; if (!bwAlive(a)) continue;
const pulse = .75 + Math.sin(realTime * 9) * .25, g = ctx.createRadialGradient(a.x, a.y - 80, 8, a.x, a.y - 80, 125); const pulse = .75 + Math.sin(realTime * 9) * .25, g = ctx.createRadialGradient(a.x, a.y - 80, 8, a.x, a.y - 80, 125);
g.addColorStop(0, `rgba(255,110,40,${.42 * pulse})`); g.addColorStop(1, 'rgba(255,60,20,0)'); ctx.fillStyle = g; ctx.beginPath(); ctx.arc(a.x, a.y - 80, 125, 0, 7); ctx.fill(); g.addColorStop(0, `rgba(255,110,40,${.42 * pulse})`); g.addColorStop(1, 'rgba(255,60,20,0)'); ctx.fillStyle = g; ctx.beginPath(); ctx.arc(a.x, a.y - 80, 125, 0, 7); ctx.fill();
if (im) {
// The club: a palm tree held in the front hand, leaning back at rest and swinging through every attack.
let ang = -.38; const act = a.action;
if (act && act.type === 'attack') { const p = clamp(act.t / act.duration, 0, 1), e = 1 - Math.pow(1 - p, 2); ang = -1.15 + (act.index === 2 ? 2.7 : 2.3) * e; }
else if (act && act.type === 'skill1') { const p = clamp(act.t / act.duration, 0, 1); ang = -.9 + 2.2 * p * p; }
else if (act) ang = -.2;
const h = 190, w = im.width / im.height * h;
ctx.save(); ctx.translate(a.x + a.facing * 34, a.y - 72); ctx.rotate(a.facing * ang); ctx.drawImage(im, -w / 2, -h + 14, w, h); ctx.restore();
}
if (Math.sin(realTime * 40) > .6) spawnParticles(a.x + (random() - .5) * 50, a.y - 40 - random() * 80, '#ff8a3a', 1, 80); if (Math.sin(realTime * 40) > .6) spawnParticles(a.x + (random() - .5) * 50, a.y - 40 - random() * 80, '#ff8a3a', 1, 80);
} }
} }