Perbaiki gelombang membelah Senator A Nice yang memukul dua kali (lewati belah bila induk sudah kena)

This commit is contained in:
rizkyaz0 2026-10-03 06:48:28 +07:00
parent 757a65ffc5
commit 7293c1e4b8
1 changed files with 1 additions and 1 deletions

View File

@ -1307,7 +1307,7 @@
fxPart(p.x, p.y, 0, 0, .25, 5, '#3a2a1a', 'ember', {});
}
if (p.trail && p.age > .08 && Math.abs(p.x - (p.lastDrop ?? p.sx0)) >= (p.trail.gap || 110)) { p.lastDrop = p.x; fxFire(p.x, p.owner, p.trail); }
if (p.split && !p.splitDone && Math.abs(p.x - p.sx0) >= p.split.at) {
if (p.split && !p.splitDone && !p.spent && Math.abs(p.x - p.sx0) >= p.split.at) {
p.splitDone = true;
for (const s of [-1, 1]) projectiles.push({ ...p, tr: [], y: p.y + s * 14, vy: s * 90, damage: Math.max(1, Math.round(p.damage * (p.split.dmg || .55))), size: Math.round(p.size * .74), tall: 95, split: null, pass: true, spent: false, trT: 0 });
effects.push({ type: 'cf-ring', x: p.x, y: p.y, life: .3, maxLife: .3, color: p.color, r: 90 }); spawnParticles(p.x, p.y, p.color, 10, 220);