Example #1
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (_Player.ChampionName != "Janna")
            {
                return;
            }
            SpellFactory.Initialize();
            Config.Initialize();
            Events.Initialize();
            Modes.Initialize();

            Drawing.OnDraw += Drawing_OnDraw;

            /*
             * Utils.SelectSkin(Config._SkinSelector.CurrentValue);
             *
             * Config._SkinSelector.OnValueChange += delegate (ValueBase<int> s, ValueBase<int>.ValueChangeArgs aargs)
             * {
             *  Utils.SelectSkin(aargs.NewValue);
             * };
             */


            Chat.Print("Simple Janna " + version + " loaded");
        }
Example #2
0
        private static void Combo()
        {
            if (SpellFactory.W.IsReady() && Config.ReturnBoolMenu("Combo", "UseW"))
            {
                var targetW = TargetSelector.GetTarget(SpellFactory.W.Range, DamageType.Magical);
                if (targetW != null)
                {
                    SpellFactory.W.Cast(targetW);
                }
            }

            if (SpellFactory.Q.IsReady() && Config.ReturnBoolMenu("Combo", "UseQ"))
            {
                var targetQ = TargetSelector.GetTarget(SpellFactory.Q.Range, DamageType.Magical);
                if (targetQ != null)
                {
                    SpellFactory.Q.Cast(targetQ);
                }
            }

            // if (SpellFactory.R.IsReady()) SpellFactory.CastR();
            if (Program.bIgnite && SpellFactory.Ignite.IsReady() && Config.ReturnBoolMenu("Combo", "UseIgnite"))
            {
                SpellFactory.UseIgnite();
            }
        }