fix: 再部署重置浮游倍率;roster-026、solo-HARD-1、solo-ABYSS-1 不再沿用旧缓存
This commit is contained in:
1 parent
bc50cac01f
commit
7434e9eaf0
8 files changed
+210
-11
No files matched your search
@@ -385,8 +385,15 @@ const installTactician = (battle, unit) => {
|
||||
};
|
||||
|
||||
const installFunnel = (battle, unit) => {
|
||||
unit.trait.funnelTarget = null;
|
||||
unit.trait.funnelScale = unit.profile.funnel?.init ?? 0.2;
|
||||
// PRTS branch traits, funnel: redeployment resets the ramp even against the same living enemy.
|
||||
const reset = () => {
|
||||
unit.trait.funnelTarget = null;
|
||||
unit.trait.funnelScale = unit.profile.funnel?.init ?? 0.2;
|
||||
unit.trait.funnelMap?.clear(); // Minimalist / Kjera keep one ramp per target.
|
||||
};
|
||||
reset();
|
||||
// A free move keeps the existing state under the owner's carry decision (DESIGN §22.3).
|
||||
battle.on('deploy', (ctx) => { if (ctx.unit === unit && !ctx.move) reset(); }, { owner: unit });
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user