fix: 外勤医疗预置角色保持初始索敌顺序 (#315)

This commit is contained in:
YinqiMargatroid committed 2026-10-11 08:33:39 +08:00
1 parent bc50cac01f
commit e85942bce1
12 files changed
+153 -21

No files matched your search

+1 -1
View File
@@ -60,7 +60,7 @@ export class BattleSummons {
if (opts.stats) for (const [k, v] of Object.entries(opts.stats)) if (Number.isFinite(v)) u.base[k] = v;
this._setupUnit(u, opts.kit ?? null);
if (opts.untargetable) this.addBuff(u, { key: 'trait:untargetable', flags: { untargetable: true }, persist: true, allowDead: true });
if (!this._deploy(u, { initial: false })) {
if (!this._deploy(u, { initial: false, preBattleAggroSeq: opts.preBattleAggroSeq })) {
// tile still busy (a unit stands there even with `force`): drop the half-built token and its hooks
u.removed = true;
this.offOwner(u);