I have been searching and thought it would be in BaseWeapon.cs, sadly I cannot seem to find it. I found these lines:
bool ignoreArmor = ( a is ArmorIgnore || (move != null && move.IgnoreArmor( attacker )) );
damageGiven = AOS.Damage( defender, attacker, damage, ignoreArmor, phys...