Fixed silly error in which units were't attacking even if they could because integer division results in 0.