Is there a way to get unit.vision at day and night?
example:
to something like:
example:
Code:
units.Where(x => x.DistanceSquared(unit) < (x.IsCreep ? 800 : 1800)).FirstOrDefault();
to something like:
Code:
units.Where(x => x.DistanceSquared(unit) < x.VisionRange).FirstOrDefault();