[Parity][net-world][S2][R] castState 过期后施法目标残留:移动中的单位朝旧目标漂移,朝向也回退到旧目标(#546 部分仍成立) #572
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
来源审计项:
net-world#12— [S2][R] F12 castState 过期后施法目标残留:移动中的单位朝旧目标漂移,朝向也回退到旧目标(#546 部分仍成立)src/client/world/client-world.ts:1431-1447(expireCastStates:只有moveMode为空或为'stop'时才清targetX/Y)、1520-1546(tick 朝targetX/Y插值);src/client/session/online-session.ts:1780-1781(targetX = castState?.targetX ?? u.targetX,用于朝向)moveMode='walk'的怪物施法过期后,x 从 5101 一路走到 5114(targetX=5130)。untilMs: now+400已删,改为按动画时长过期),但"走路时朝着旧目标"仍然存在。unit.targetX/Y;过期时无条件清除。