Maybe just special-case it for if all remaining infected tiles are indestructible, you can click an indestructible tile and Wait?