ArcAnnihilation.Core.CheckForPike C# (CSharp) Method

CheckForPike() private static method

private static CheckForPike ( Hero me, Hero target, double distance, System.Item x ) : bool
me Hero
target Hero
distance double
x System.Item
return bool
        private static bool CheckForPike(Hero me, Hero target, double distance, Item x)
        {
            if (x.StoredName() != "item_hurricane_pike")
                return true;
            var angle = (float)Math.Max(
                Math.Abs(me.RotationRad -
                         Utils.DegreeToRadian(me.FindAngleBetween(target.Position))) - 0.20, 0);
            return !Prediction.IsTurning(me) && angle == 0 && distance >= 600;
        }