fix: 外勤医疗预置干员保留初始索敌顺序 (#315)

This commit is contained in:
YinqiMargatroid committed 2026-10-09 22:04:28 +08:00
1 parent 62eb113419
commit 3b57f72704
9 files changed
+96 -7

No files matched your search

+3 -1
View File
@@ -241,7 +241,9 @@ function installMapChars(battle) {
for (const ps of holders) {
const elites = deployedOps(battle, ps.playerId).filter(isElite).length;
for (const id of amedicCharsFor(elites, variants)) {
const u = spawnMapChar(battle, ps.playerId, id);
// The map character is visible before combat; Touch replaces it here once the elite count is known.
// [ASSUMED] The replacement retains the stage slot's earlier aggro order.
const u = spawnMapChar(battle, ps.playerId, id, { preBattle: true });
if (u) fxOn(battle, 'summon', u, keyOf(AMEDIC_BAND), AMEDIC_BAND);
}
}