REDIVIVUS

Proposals / #1441

Mac DAMAGE_ApplyCold: void __fastcc (D2UnitStrc* pUnit ECX, D2UnitStrc* pUnit2 EDX, int32_t nColdLength)

checked · by KierTaylor · submitted 2026-11-08

Resubmit of #1259 with the Mac register convention __fastcc, as the reviewer asked; parameters are unchanged. ECX = attacker, EDX -> ESI = target (stat 0xb), [EBP+8] = cold length. Plain RET, callers ignore EAX. Caller 0x0027dc0c. Windows twin 0x0057af80.

Changes 1, applied together

  1. Set prototype mac 0x0027e464

    signatureundefined DAMAGE_ApplyCold(void)→void DAMAGE_ApplyCold(D2UnitStrc* pUnit, D2UnitStrc* pUnit2, int32_t nColdLength)
    conventionunknown→__fastcc