REDIVIVUS

Proposals / #635

Name the missile and block flags of the block and evade rolls, tested in the running game

applied · by dtchitt · submitted 2026-11-01, applied 2026-11-01

Ghidra v1799 · 2663303

DAMAGE_CheckDefenseEvasion's first parameter picks passive_dodge when zero and passive_avoid when nonzero, so it says whether the attack is a missile. DAMAGE_CheckBlockAndEvasion's last parameter decides whether the block roll happens at all. Note: Stack[0x8] of DAMAGE_CheckBlockAndEvasion is named nAttackRating but only passes straight into that missile flag, and DAMAGE_CalculateHitCheck passes 0 there. The checks treat that name as chosen, so it is not edited here, but it looks wrong.

Changes 2, applied together

  1. Rename variable win 0x0057dd60 Stack[0x4]

    namenParam→bIsMissile
  2. Rename variable win 0x0057dfb0 Stack[0xc]

    namenParam2→bRollBlock