From 151c6d08742c94b3859488537e200fce93b480aa Mon Sep 17 00:00:00 2001 From: sganggs Date: Sat, 3 Oct 2026 17:48:35 +0800 Subject: [PATCH] feedback1 integrate: holdsUndying checks the cheap fields first (every fatal of the battle passes it) --- server/sim/content/items/battle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sim/content/items/battle.js b/server/sim/content/items/battle.js index 96c1cbfe..ecf07141 100644 --- a/server/sim/content/items/battle.js +++ b/server/sim/content/items/battle.js @@ -251,7 +251,7 @@ export function revivedInPlace(u) { if (u && u.mem) u.mem.revives = (u.mem.reviv * source] — and ends with the deployment. 信仰搅拌机 S2 steps aside while it holds (kits/tier4.js). */ export function holdsUndying(battle, u) { - return !!u && u.mem.undyingAt === deploymentOf(u) && battle.time < (u.mem.undyingUntil ?? -Infinity); + return !!u && u.mem.undyingAt != null && battle.time < u.mem.undyingUntil && u.mem.undyingAt === deploymentOf(u); } /** Effective multiplier of a hammer type on `u` and its params (null when the type does not apply). */ function hammerMul(battle, rt, u, hs, type) {