feedback2: WG review — a chain healer's bounces skip 禁疗 / noHeal units (史尔特尔 in 余烬); PLAYING and DESIGN say 隐匿 returns 3 s after a block; 山海众头目's mark comment

This commit is contained in:
sganggs committed 2026-10-04 02:19:40 +08:00
1 parent e0b51e0310
commit 79bbd51525
5 files changed
+31 -4

No files matched your search

+2 -1
View File
@@ -295,7 +295,8 @@ function doHeal(b, u, prof, t) {
for (let k = 1; k < n; k++) {
let best = null, bd = Infinity;
for (const a of b.alliesInRadius(prev.x, prev.y, 2.5, null)) {
if (seen.has(a.id) || a.hp >= a.s.maxHp || a.kind === 'device') continue;
// 禁疗 / noHeal units are no heal target for the bounces either (as injuredAlliesInKeys; 史尔特尔's 余烬, GitHub #52)
if (seen.has(a.id) || a.hp >= a.s.maxHp || a.kind === 'device' || a.s.flags.noHeal || (a.profile && a.profile.noHeal)) continue;
const d = a.hpRatio;
if (d < bd) { bd = d; best = a; }
}