Likely the AI will have to use assault only under certain conditions.
These conditions can be:
*If the AI has numerical superiority(according to the number of enemy shots from the building)
*If the AI detected enemy inside building and was "X" seconds (for example 240-300 s)
*If the AI located close to the building, where is the enemy shooting (for example 15-25 m)