REDIVIVUS

Proposals / #1444

Mac DAMAGE_ApplyHealingToUnit: void __fastcc (D2UnitStrc* pUnit ECX, int32_t nHealAmount EDX)

checked · by KierTaylor · submitted 2026-11-08

Resubmit of #1257 (approved, then stale because __fastcall is not defined on Mac), now with __fastcc. ECX -> EDI = pUnit, EDX -> ESI = heal amount. There are no stack reads, and callers 0x0027d8b1/0x0027d929 ignore EAX. Windows twin 0x0057a980.

Changes 1, applied together

  1. Set prototype mac 0x0027e3e6

    signatureundefined DAMAGE_ApplyHealingToUnit(void)→void DAMAGE_ApplyHealingToUnit(D2UnitStrc* pUnit, int32_t nHealAmount)
    conventionunknown→__fastcc