some minor changes to make units take damage