Update calculateAttack.php

fixed defens repaired and fix repair defends in debris