Order things are checked for attacks as per Loggy's research
If the defender can petrify the attacker makes a magic resistance roll or gets turned to stone
If the defender has Eye Vengeance (e.g. wearing the Eye Shield the attacker makes a magic resistance roll to prevent eye loss.
If the defender is wearing the Vine Shield the attacker makes a magic resistance roll to avoid being entangled.
An attack roll vs. defense roll is made. Any positive and negative modifiers to attack and defense are applied.
If the attacker is using an iron weapon and the defender has Iron Vulnerability, the vulnerability is taken into account now.
Attacker rolls damage and defender rolls Protection. If defender rolls low, an armor defeating hit reduction to Protection occurs.
If the defender takes Shock Damage, a check is made to see whether the defender is stunned.
If the defender's Shield was hit a check is made to see whether the shield was damaged.
If the defender has any Mirror Images, a check is made to see if the damage is negated. This does not stop the following effects from happening.
If the defender is ethereal, the defender has a 75% chance to negate the damage of any non-magical attack.
If the defender has Luck and the attack was a killing blow, the defender has a 75% chance to negate the damage.
If the defender has Damage Reversal, the attacker makes a magic resistance check or takes damage.
If the defender has Blood Vengeance, the attacker makes a magic resistance check or takes damage.
If the defender has Poisonous Barbs, the defender makes a damage roll to apply poison damage to the attacker.
If the defender has Contact Poison, the defender makes a damage roll to apply poison damage to the attacker.
If the defender has Astral Shield, the attacker makes a magic resistance check or becomes paralyzed.
If the defender has Fire Shield, the defender makes a damage roll to apply fire damage to the attacker.
If the defender has Banefire Shield, the defender makes a damage roll to apply fire damage to the attacker.
If the defender has Acid Splash, the defender makes a damage roll to apply acid damage to the attacker.
If the defender has Blood Bond and allies with blood bond nearby, the damage is spread. It is known to be after luck, but exact location is not currently known.