Unit hit function repaired, hp init fixed (unit.init function error