From 46eb97751b65d1edd43129b50b3f2f7dadf962ed Mon Sep 17 00:00:00 2001 From: sganggs Date: Sat, 3 Oct 2026 23:36:55 +0800 Subject: [PATCH] feedback2 WJ: Battle.alliesInRadius says it has no selection rule (enemy areas filter with areaSelectable) --- server/sim/Battle.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/sim/Battle.js b/server/sim/Battle.js index caa9b20f..09806a12 100644 --- a/server/sim/Battle.js +++ b/server/sim/Battle.js @@ -1626,6 +1626,10 @@ export class Battle { return out; } + /** + * Every deployed ally within `r` of (x, y) — no selection rule: an enemy's area effect selects among them with + * targeting.js areaSelectable (content/enemies.js areaAllies: no unblocking 隐匿 ally, DESIGN §22.12). + */ alliesInRadius(x, y, r, ownerId = null, { includeDevices = false } = {}) { const out = []; const r2 = r * r + 1e-9;