Count Fartooth granted layers on doll swaps (#415, #429)

This commit is contained in:
sganggs committed 2026-10-09 17:12:18 +08:00
1 parent 33f0e01093
commit 3f19b5981d
5 files changed
+125 -1

No files matched your search

+7
View File
@@ -316,6 +316,13 @@ const INSTALLERS = {
const arr = m.get(unit);
if (arr) for (const it of arr) fireGain(battle, it);
});
// Player-confirmed: 远牙's granted trait also gains on each body / substitute switch (DESIGN §28.5).
// Restrict this extra trigger to that trait; use its existing amounts, active-bond checks and battle cap.
const farTooth = byUnit(list.filter((it) => it.gid === 'garrison_108_a' || it.gid === 'garrison_108_b'));
if (farTooth.size) battle.on('dollSwap', ({ unit }) => {
const arr = farTooth.get(unit);
if (arr) for (const it of arr) fireGain(battle, it);
});
},
act2autochess_gar_event_allyenemy_sleepstun_inrange(battle, list) {