Ejemplo n.º 1
0
        public static void Drawing_OnDraw(EventArgs args)
        {
            foreach (var spell in SkyLv_Tristana.SpellList)
            {
                var menuItem = SkyLv_Tristana.Menu.Item(spell.Slot + "Range").GetValue <Circle>();

                if (menuItem.Active && (spell.Slot != SpellSlot.R || R.Level > 0))
                {
                    Render.Circle.DrawCircle(Player.Position, spell.Range, menuItem.Color, SkyLv_Tristana.Menu.Item("SpellDraw.Radius").GetValue <Slider>().Value);
                }
            }

            if (SkyLv_Tristana.Menu.Item("DrawOrbwalkTarget").GetValue <Circle>().Active)
            {
                var orbT = SkyLv_Tristana.Orbwalker.GetTarget();
                if (orbT.IsValidTarget())
                {
                    Render.Circle.DrawCircle(orbT.Position, 100, SkyLv_Tristana.Menu.Item("DrawOrbwalkTarget").GetValue <Circle>().Color, SkyLv_Tristana.Menu.Item("OrbwalkDraw.Radius").GetValue <Slider>().Value);
                }
            }

            if (SkyLv_Tristana.Menu.Item("Tristana.DrawingsInsec").GetValue <Circle>().Active)
            {
                var target = CustomLib.GetTarget;
                if (target != null)
                {
                    Drawing.DrawLine(Drawing.WorldToScreen(target.Position), Drawing.WorldToScreen(CustomLib.GetPushPosition(target)), SkyLv_Tristana.Menu.Item("Insec.Radius").GetValue <Slider>().Value, SkyLv_Tristana.Menu.Item("Tristana.DrawingsInsec").GetValue <Circle>().Color);
                    Render.Circle.DrawCircle(target.Position, target.BoundingRadius * 1.35f, SkyLv_Tristana.Menu.Item("Tristana.DrawingsInsec").GetValue <Circle>().Color, SkyLv_Tristana.Menu.Item("Insec.Radius").GetValue <Slider>().Value);
                    Render.Circle.DrawCircle(CustomLib.GetBehindPosition(target), target.BoundingRadius * 1.35f, SkyLv_Tristana.Menu.Item("Tristana.DrawingsInsec").GetValue <Circle>().Color, SkyLv_Tristana.Menu.Item("Insec.Radius").GetValue <Slider>().Value);
                }
            }

            if (SkyLv_Tristana.Menu.Item("Tristana.DrawingsREndPosition").GetValue <Circle>().Active)
            {
                var target = TargetSelector.GetSelectedTarget();
                if (target != null && R.IsReady())
                {
                    Render.Circle.DrawCircle(Player.Position.Extend(target.Position, Player.Distance(target) + CustomLib.RPushDistance()), target.BoundingRadius * 1.35f, SkyLv_Tristana.Menu.Item("Tristana.DrawingsREndPosition").GetValue <Circle>().Color, SkyLv_Tristana.Menu.Item("REndPosition.Radius").GetValue <Slider>().Value);
                }
            }
        }
Ejemplo n.º 2
0
        public static void Obj_AI_Base_OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args)
        {
            if (!sender.IsMe)
            {
                return;
            }

            if (args.SData.IsAutoAttack())
            {
                SkyLv_Tristana.lastAA = Utils.GameTimeTickCount;
            }

            switch (args.SData.Name)
            {
            case "TristanaQ":
                SkyLv_Tristana.lastQ = Utils.GameTimeTickCount;
                break;

            case "TristanaW":
                SkyLv_Tristana.lastW = Utils.GameTimeTickCount;
                break;

            case "TristanaE":
                SkyLv_Tristana.lastE = Utils.GameTimeTickCount;
                break;

            case "TristanaR":
                SkyLv_Tristana.lastR = Utils.GameTimeTickCount;
                var target = CustomLib.GetTarget;
                SkyLv_Tristana.REndPosition = Player.Position.Extend(target.Position, Player.Distance(target) + CustomLib.RPushDistance());
                break;
            }
        }