Exemple #1
0
 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;
 }
Exemple #2
0
 public static uint PriorityHelper(Item item)
 {
     return Members.Menu.Item("itemEnable").GetValue<PriorityChanger>().GetPriority(item.StoredName());
 }
Exemple #3
0
 private static uint GetComboOrder(Item y, bool byIllusion)
 {
     //Print(Menu.Item("itemTempest").Name);
     if (Menu.Item(byIllusion ? "customOrderTempest" : "customOrderHero").GetValue<bool>())
         return Menu.Item(byIllusion ? "itemTempest" : "itemHero")
             .GetValue<PriorityChanger>()
             .GetPriority(y.StoredName());
     return Items[y.StoredName()];
 }