Using getTotalLife in getThread

Avoid going back-and-forth between attacks since getLife changes the threat after an attack.