feedback2 WJ: Battle.alliesInRadius says it has no selection rule (enemy areas filter with areaSelectable)

This commit is contained in:
sganggs committed 2026-10-03 23:36:55 +08:00
1 parent f059ba5be8
commit 46eb97751b
1 file changed
+4
+4
View File
@@ -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;