Exemplo n.º 1
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.ChampionName != "Tristana")
            {
                return;
            }


            Config.Initialize();
            SpellM.Initialize();
            ModeM.Initialize();
            Events.Initialize();
            MiscFunctions.Initialize();
            //DamageIndicator.Initialize();
            Game.OnTick += MiscFunctions.Game_OnTick;


            Chat.Print("Tristerino 1.0 Loaded!");
        }
Exemplo n.º 2
0
        private static void OnDraw(EventArgs args)
        {
            var ERRange = SpellM.ERRange();

            if (SettingsDrawing.DrawW)
            {
                if (!(SettingsDrawing.DrawOnlyReady && !SpellM.W.IsReady()))
                {
                    Circle.Draw(Color.Black, SpellM.W.Range, Player.Instance.Position);
                }
            }
            if (SettingsDrawing.DrawE)
            {
                if (!(SettingsDrawing.DrawOnlyReady && !SpellM.E.IsReady()))
                {
                    Circle.Draw(Color.White, ERRange, Player.Instance.Position);
                }
            }
            if (SettingsDrawing.DrawR)
            {
                if (!(SettingsDrawing.DrawOnlyReady && !SpellM.R.IsReady()))
                {
                    Circle.Draw(Color.Red, ERRange, Player.Instance.Position);
                }
            }

            //Stacks
            var target = EntityManager.Heroes.Enemies.Find(x => x.HasBuff("TristanaECharge") && x.IsValidTarget(2000));

            if (!target.IsValidTarget())
            {
                return;
            }
            if (SettingsDrawing.DrawStacks)
            {
                var x = target.HPBarPosition.X + 45;
                var y = target.HPBarPosition.Y - 25;

                if (SpellM.E.Level > 0)
                {
                    if (HasEBuff(target))
                    {
                        var stacks = target.GetBuffCount("TristanaECharge");
                        if (stacks > -1)
                        {
                            for (var i = 0; 4 > i; i++)
                            {
                                if (i > stacks)
                                {
                                    Drawing.DrawLine(x + i * 20, y, x + i * 20 + 10, y, 10, System.Drawing.Color.Black);
                                }
                                else
                                {
                                    Drawing.DrawLine(x + i * 20, y, x + i * 20 + 10, y, 10, System.Drawing.Color.White);
                                }
                            }
                        }
                    }
                }
            }
            //End of stacks
        }