Skip to content

Fix : 修复洛茜战技在时间轴上时,撤销和重做无法正常执行的问题#43

Open
SQwatermark wants to merge 1 commit into
Lieyuan621:mainfrom
SQwatermark:fix/rossi-clawmark
Open

Fix : 修复洛茜战技在时间轴上时,撤销和重做无法正常执行的问题#43
SQwatermark wants to merge 1 commit into
Lieyuan621:mainfrom
SQwatermark:fix/rossi-clawmark

Conversation

@SQwatermark

@SQwatermark SQwatermark commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

为洛茜天赋斫痕注入到战技中的 razorClawmark DoT 效果添加 id,避免技能数据在恢复历史快照后重新生成随机 id 导致该快照重新被写入历史记录


补充:

对所有干员的类似技能进行排查,发现以下干员技能仍有相同问题。感觉生成随机ID的逻辑很怪,可能需要看看这块是不是需要重构,而不是单纯补一个ID

patchHit.hit.effects 注入效果
→ patchCombatSkills()
→ resolveEffect(e, idx)
→ effect.id ?? uid()
→ 恢复历史后重新生成随机 id
→ displayType/序列化结果变化
→ 撤销历史被污染

patchHit 注入 effect 缺 id

干员 来源 文件位置 targetHit effect
Avywenna 天赋 2 avywenna.ts:83 avywenna-ultimate-hit status
Catcher 天赋 2 catcher.ts:43 catcher-ultimate-last-hit damageHit
Xaihi 天赋 1 xaihi.ts:30 xaihi-combo-hit status
Ember 潜能 5 ember.ts:90 ember-ultimate-hit status
Fluorite 潜能 3 fluorite.ts:60 fluorite-battle-explosive-expire-damage-hit status
Fluorite 潜能 3 fluorite.ts:74 fluorite-battle-explosive-consumed-damage-hit status
Wulfgard 潜能 3 wulfgard.ts:84 wulfgard-battle-additional-shot derived
Wulfgard 潜能 3 wulfgard.ts:90 wulfgard-battle-additional-shot derived
Yvonne 潜能 5 yvonne.ts:175 yvonne-ultimate status
Yvonne 潜能 5 yvonne.ts:182 yvonne-ultimate status

@SQwatermark SQwatermark marked this pull request as draft June 17, 2026 08:54
@SQwatermark SQwatermark marked this pull request as ready for review June 17, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant