fixed a bug in battleutils for hit determination