[Parity][motion-input][S1][R] 默认 Attack(技能 0)下左键点怪物只发 MoveToUnit,永远不普通攻击 #581
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?
来源审计项:
motion-input#1— [S1][R] 1. 默认 Attack(技能 0)下左键点怪物只发 MoveToUnit,永远不普通攻击src/client/input/command-mapper.ts:545-565(triggerPrimaryWorldAction),:399(leftSkillId来源)if (leftSkillId > 0) { … type: 'SkillOn', hand: 'left' … },否则type: 'MoveToUnit'skills.txt#0 Attack Id=0,TargetableOnly=1),所以"0 = 没有技能"这个假设不成立。服务器收到 C2S 0x02/0x04(WalkToEntity/RunToEntity)时只调用D2GAME_PLAYERMODE_Change_6FC81A00(pGame, pUnit, 0 /*pSkill*/, 2|3, type, guid, 0)让玩家走过去,不带技能,也不设置 InteractData(V-src D2GamePlrMsg.cpp:698-733、752-787;函数签名见PlrModes.cpp:1651)。原版左键点怪物发 0x06 LeftSkillOnUnit,近战由服务器按技能射程走近后出手(K-高)。:402-413发 SkillOn)。这是正常游玩的主路径。leftSkillId > 0来判断。