Added more code to handle dammages to enemies entering building range