Notwithstanding the above provisions, if a residential or commercial building is damaged or destroyed by a natural disaster or other act of God, such building shall be repaired, rebuilt or replaced to eliminate or reduce the nonconforming feature to the extent possible, without the need to obtain a variance as provided in Virginia Code Section 15.2-2310 or its successor statute. If such building cannot be repaired, rebuilt or replaced except as to restore it to its original nonconforming condition, the owner shall have the right to do so. The owner shall apply for a building permit, and any work done to repair, rebuild or replace such building shall be in compliance with the provisions of the Statewide Building Code (Virginia State Code Section 36-98, et seq.), and any work done to repair, rebuild or replace such building shall be in compliance with the provisions of the local floodplain regulations adopted as a condition of participation in the National Flood Insurance Program. Unless such building is repaired or replaced within two years of the date of the natural disaster or other act of God, such building shall only be repaired, rebuilt or replaced in accordance with the provisions of Chapter
180 of the Code of Warren County, Virginia, pertaining to zoning, then in effect. However, if the nonconforming building is in an area under a federal disaster declaration and the building has been damaged or destroyed as a direct result of conditions that give rise to the declaration, then such building may be repaired, rebuilt or replaced within four years following such damage or destruction.