Pseudocode for subtracting damage from health.