Changed how damage and defense is calculated.