REDIVIVUS

Proposals / #772

Mac: retype SKILLS_CreateMissileScatter's pUnit to D2UnitStrc *

applied · by Captain-Fwiffo · submitted 2026-11-01, applied 2026-11-02

Ghidra vmac 108 · bc4e150

Mac twin of the Windows SKILLS_CreateMissileScatter(D2UnitStrc * pUnit, ...) at 004c7480, which is already typed there. The Mac body advances the caster's RNG seed in place at pUnit+0x20/+0x24 (D2UnitStrc.sSeed, low * 0x6ac690c5 + high), the same use as in other unit-seed code. Same-width retype of the first stack parameter; name kept. Mac callers (Skills_CltDoFunc_Mon_ScatterDoubleMissile, SKILLSNEC_CltCreateTeethMissiles) were not traced.

Changes 1, applied together

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

    typeint32_t→D2UnitStrc *