//public static Menu evadeMenu2, championmenu2; public static void Init() { Extensions.LoadYSpells(); LoadSpellData(); /* * evadeMenu2 = MainMenu.AddMenu("Evade Target", "EvadeTarget"); * { * evadeMenu2.Add("W", new CheckBox("Use W")); // evadeSpells.Add("ETower", new CheckBox("Under Tower", false)); * evadeMenu2.Add("E", new CheckBox("Use E (To Dash Behind WindWall)")); * evadeMenu2.Add("ETower", new CheckBox("-> Under Tower", false)); * evadeMenu2.Add("BAttack", new CheckBox("Basic Attack")); * evadeMenu2.Add("BAttackHpU", new Slider("-> If Hp <", 35)); * evadeMenu2.Add("CAttack", new CheckBox("Crit Attack")); * evadeMenu2.Add("CAttackHpU", new Slider("-> If Hp <", 40)); * championmenu2 = evadeMenu2.AddSubMenu("Evade Point to Click"); * foreach ( * var spell in Spells.Where(i => EntityManager.Heroes.Enemies.Any(a => a.ChampionName == i.ChampionName))) * { * championmenu2.Add(spell.MissileName, new CheckBox( * spell.MissileName + " (" + spell.Slot + ")", * false)); * } * } */ Game.OnUpdate += OnUpdateTarget; GameObject.OnCreate += ObjSpellMissileOnCreate; GameObject.OnDelete += ObjSpellMissileOnDelete; Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast; }