Correcting an error in the combat formula