Some minor changes to fn_handleDamage