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