Пример #1
0
 private static void AutoWard()
 {
     if (TristanaMenu.checkWard())
     {
         foreach (var place in wardLocation.Normal.Where(pos => pos.Distance(ObjectManager.Player.Position) <= 1000))
         {
             if (MyActivator.WardingTotem.IsOwned() && MyActivator.WardingTotem.IsReady() && TristanaMenu.wardingTotem() && !IsWarded(place))
             {
                 MyActivator.WardingTotem.Cast(place);
                 time = Environment.TickCount + 5000;
             }
             if (MyActivator.GreaterStealthTotem.IsOwned() && MyActivator.GreaterStealthTotem.IsReady() && TristanaMenu.greaterStealthTotem() && !IsWarded(place) && (Environment.TickCount > time))
             {
                 MyActivator.GreaterStealthTotem.Cast(place);
                 time = Environment.TickCount + 5000;
             }
             if (MyActivator.GreaterVisionTotem.IsOwned() && MyActivator.GreaterVisionTotem.IsReady() && TristanaMenu.greaterVisionTotem() && !IsWarded(place) && (Environment.TickCount > time))
             {
                 MyActivator.GreaterVisionTotem.Cast(place);
                 time = Environment.TickCount + 5000;
             }
             if (MyActivator.FarsightAlteration.IsOwned() && MyActivator.FarsightAlteration.IsReady() && TristanaMenu.farsightAlteration() && !IsWarded(place) && (Environment.TickCount > time))
             {
                 MyActivator.FarsightAlteration.Cast(place);
                 time = Environment.TickCount + 5000;
             }
             if (MyActivator.PinkVision.IsOwned() && MyActivator.PinkVision.IsReady() && TristanaMenu.pinkWard() && !IsWarded(place) && (Environment.TickCount > time))
             {
                 MyActivator.PinkVision.Cast(place);
                 time = Environment.TickCount + 5000;
             }
         }
     }
 }