REDIVIVUS

Proposals / #693

Mac: companion to #285 (ApplyDamageCritical's pnParam to D2UnitStrc *)

rejected · by Captain-Fwiffo · submitted 2026-11-01, rejected 2026-11-01

Mac twin of Windows #285 with the same body: pnParam is the attacking monster unit — [0] == 1 is eUnitType == UNIT_MONSTER, [1] is nClassId (bounds-checked against the monstats table and scaled by 0x1a8), and [8]/[9] is the unit's sSeed, advanced in place with the usual 0x6ac690c5 multiplier (the MUL/MOV at +0x20/+0x24 in the disassembly). Same-width retype; name kept. Mac callers were not individually traced.

Changes 1, applied together

  1. Retype variable mac 0x001da612 Stack[0x4]

    typeint *→D2UnitStrc *