原帖由 whh 于 2021-5-21 09:52 发表
00412BC3 /$ 55 PUSH EBP
00412BC4 |. 8BEC MOV EBP,ESP
00412BC6 |. E8 DC880200 CALL Ekd5.0043B4A7
00412BCB |. 3C 27 CMP AL,27
00412BCD |. 77 0D ...
00412BC3 /$ 55 PUSH EBP
00412BC4 |. 8BEC MOV EBP,ESP
00412BC6 |. E8 DC880200 CALL Ekd5.0043B4A7
00412BCB |. 3C 27 CMP AL,27
00412BCD |. 77 0D JA SHORT Ekd5.00412BDC
00412BCF |. 25 FF000000 AND EAX,0FF
00412BD4 |. 8A80 E22B4100 MOV AL,BYTE PTR DS:[EAX+412BE2]
00412BDA |. EB 02 JMP SHORT Ekd5.00412BDE
00412BDC |> 33C0 XOR EAX,EAX
00412BDE |> 8BE5 MOV ESP,EBP
00412BE0 |. 5D POP EBP
00412BE1 \. C3 RETN
00412BE2 00 DB 00
00412BE3 00 DB 00
00412BE4 00 DB 00
00412BE5 00 DB 00
改为:
00412BC3 55 PUSH EBP
00412BC4 8BEC MOV EBP,ESP
00412BC6 E8 DC880200 CALL 0043B4A7
00412BCB 3C 27 CMP AL,27
00412BCD 77 0D JA SHORT 00412BDC
00412BCF 25 FF000000 AND EAX,0FF
00412BD4 8A80 C0204D00 MOV AL,BYTE PTR DS:[EAX+4D20C0] 这是兵种移动声音的地址。当EAX的值为0,即是马蹄声的时候就会受到额外伤害。
00412BDA EB 02 JMP SHORT 00412BDE
00412BDC 33C0 XOR EAX,EAX
00412BDE 8BE5 MOV ESP,EBP
00412BE0 5D POP EBP
00412BE1 C3 RETN
00412BE2 90 NOP
00412BE3 90 NOP
00412BE4 90 NOP
00412BE5 90 NOP