Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

dumduel: ignore own relayed messages (fix double bullet)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+3 -4
+3 -4
system/public/aesthetic.computer/disks/dumduel.mjs
··· 224 224 if (roster.length >= 2 && phase === "waiting") startCountdown(); 225 225 } 226 226 227 - if (type === "duel:fire" && phase === "fight") { 227 + if (type === "duel:fire" && phase === "fight" && msg.handle !== myHandle) { 228 228 bullets.push({ x: msg.x, y: msg.y, vx: msg.vx, vy: msg.vy, owner: "them" }); 229 229 } 230 230 231 - if (type === "duel:hit" && phase === "fight") { 231 + if (type === "duel:hit" && phase === "fight" && msg.handle !== myHandle) { 232 232 if (msg.victim === myHandle) { 233 233 if (me) me.alive = false; 234 234 endRound(msg.handle); 235 - server.send("duel:roundover", { winner: msg.handle }); 236 235 } 237 236 } 238 237 239 - if (type === "duel:roundover" && phase === "fight") { 238 + if (type === "duel:roundover" && phase === "fight" && msg.handle !== myHandle) { 240 239 endRound(msg.winner); 241 240 if (opponent && msg.winner === myHandle) opponent.alive = false; 242 241 else if (me && msg.winner !== myHandle) me.alive = false;