From 7293c1e4b8f4041cab8cf2fb462140f0ee64d019 Mon Sep 17 00:00:00 2001 From: rizkyaz0 Date: Sat, 3 Oct 2026 06:48:28 +0700 Subject: [PATCH] Perbaiki gelombang membelah Senator A Nice yang memukul dua kali (lewati belah bila induk sudah kena) --- game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game.js b/game.js index 594b535..24360ed 100644 --- a/game.js +++ b/game.js @@ -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);