REDIVIVUS

Proposals / #1116

Recover the Mac monster-attacking predicate's complete Boolean result

checked · by Commit-Will · submitted 2026-11-03

Recover existing BOOL4 for Mac001a6991 while preserving exact pUnit Unit* Stack4, one formal, selected name/local_c, cdecl and noVarArgs. Every normal fullEAX result is literal0/1 after an opaque helper; its value may be arbitrary before local normalization. The complete actual HirelingFarWander caller forwards its precise Unit* Stack8 formal before any opaque CALL, then uses fullEAX in a truth branch after two non-EAX MOVs. Complete287B90instruction scope has fresh raw, separate exact assembly, full ownership/directCFG and own frame transport under ordinary IF-return ABI interfaces. Other26CALLs remain metadata only. No attack-mode/gameplay interpretation, helper effects/cleanup/preservation, pointer/context safety, global invariant, original typedef/MachO identity/execution or source/build/runtime/matching gain. Any contradiction/refusal holds the original whole contract; no narrowed or alternate-caller variant.

Changes 1, applied together

  1. Set prototype mac 0x001a6991

    signatureundefined4 MONSTERAI_IsMonsterAttacking(D2UnitStrc * pUnit)→BOOL MONSTERAI_IsMonsterAttacking(D2UnitStrc * pUnit)
    convention__cdecl