Justice and military success