feedback7 R22-LATE: 引星棘刺 S1 度算浪波 breaks an HP-ratio tie by the latest deployment; golden: roster-033, roster-034 move
PRTS 引星棘刺 技能1 度算浪波 备注: 「※优先选择生命比例最低>最晚部署的我方单位(不含装置职业单位)」. The kit took the ally with the lowest HP ratio but broke a tie by more blocking, then the nearer one, then the unit id. A tie now goes to the latest deployment (the highest deploySeq: a redeployed operator counts from its new deployment), the id last. 「不含装置职业单位」 was already met: alliesInGrid never returns a device. Golden: roster-033 (a normal 引星棘刺 with S1) and roster-034 (an elite one) move — at the start every ally is at full HP, so the first units now land on the latest deployed ally instead of the nearest one (033: killed 64 → 47, leaks 103 → 120; 034: 5_14_b damage taken 14691 → 11676 …). Tests: test/content/kits_alt_t5.test.js +1 (two allies at 50 %: the later deployment, though farther, gets the unit; a lower ratio still wins) — fails on the parent; all 引星棘刺 tests pass (9).
This commit is contained in:
1 parent
ac4231846f
commit
03688c8297
3 files changed
+77
-48
No files matched your search
@@ -96,7 +96,9 @@ export default {
|
||||
// (GitHub #124 「引星棘刺一技能不会在满技力时自动释放」)
|
||||
trigger: { rule: 'SP_FULL' },
|
||||
onStart({ battle, unit }) {
|
||||
const t = battle.alliesInGrid(unit).filter((a) => a.hp > 0).sort((a, b) => a.hpRatio - b.hpRatio || b.blocking.length - a.blocking.length || dist(a, unit) - dist(b, unit) || a.id - b.id)[0];
|
||||
// PRTS 备注 「※优先选择生命比例最低>最晚部署的我方单位(不含装置职业单位)」: the lowest HP ratio, a tie to the
|
||||
// latest deployment (alliesInGrid has no devices); until 0.2.2 a tie went to more blocking, then the nearer
|
||||
const t = battle.alliesInGrid(unit).filter((a) => a.hp > 0).sort((a, b) => a.hpRatio - b.hpRatio || b.deploySeq - a.deploySeq || a.id - b.id)[0];
|
||||
if (!t) return;
|
||||
const z = { type: 'guard', r: t.tileR, c: t.tileC, x: t.x, y: t.y, t: 0, acc: 0, dur: num(bb.projectile_delay_time, 6) + extend(battle, unit) };
|
||||
(unit.mem.zones ??= []).push(z);
|
||||
|
||||
Reference in new issue
Block a user