New Function for setting damage.