NPCs now attack players and structures first based on their ability to do damage.