whre i fill in that?normal
myCode:// ignore non-legendaries and gold near elites if we're ignoring elites // not sure how we should safely determine this distance if (CombatBase.IgnoringElites && cacheObject.ItemQuality < ItemQuality.Legendary && ObjectCache.Any(u => u.Type == GObjectType.Unit && u.IsEliteRareUnique && u.Position.Distance2D(cacheObject.Position) <= 40f)) { cacheObject.Weight = 0; }
Code:// ignore non-legendaries and gold near elites if we're ignoring elites // not sure how we should safely determine this distance if ((CombatBase.IgnoringElites && cacheObject.ItemQuality < ItemQuality.Legendary && ObjectCache.Any(u => u.Type == GObjectType.Unit && u.IsEliteRareUnique && u.Position.Distance2D(cacheObject.Position) <= 40f)) || ( (AvoidanceObstacleCache.Any(aoe => cacheObject.Position.Distance2D(aoe.Location) <= aoe.Radius)) && cacheObject.ItemQuality < ItemQuality.Legendary)) { cacheObject.Weight = 0; }
better looking code
Code:if (cacheObject.ItemQuality < ItemQuality.Legendary &&((CombatBase.IgnoringElites && ObjectCache.Any(u => u.Type == GObjectType.Unit && u.IsEliteRareUnique && u.Position.Distance2D(cacheObject.Position) <= 40f)) || AvoidanceObstacleCache.Any(aoe => cacheObject.Position.Distance2D(aoe.Location) <= aoe.Radius))) { cacheObject.Weight = 0; }