public static void OnGameLoad() { // Only load on Irelia, silly if (Player.CharData.BaseSkinName != "Irelia") { return; } // Initialize our menu IreliaMenu.Initialize(); // Initialize our spells Spells.Initialize(); // Subscribe to our events Game.OnUpdate += OnUpdate; Orbwalker.OnPreAttack += BeforeAttack; Drawing.OnDraw += OnDraw; Obj_AI_Base.OnBuffLose += OnBuffRemove; // Sheen buff workaround AntiGapcloser.OnEnemyGapcloser += OnEnemyGapcloser; Interrupter2.OnInterruptableTarget += OnInterruptableTarget; //EloBuddy.Player.OnBasicAttack += AIHeroClient_OnAggro; Obj_AI_Turret.OnBasicAttack += Obj_AI_Turret_OnBasicAttack; Obj_AI_Base.OnProcessSpellCast += (sender, eventArgs) => { if (sender.IsMe && eventArgs.SData.Name == Spells.E.Instance.SData.Name) { LeagueSharp.Common.Utility.DelayAction.Add(260, Orbwalker.ResetAutoAttack); } if (sender.IsMe && eventArgs.SData.Name == Spells.Q.Instance.SData.Name) { LeagueSharp.Common.Utility.DelayAction.Add(260, Orbwalker.ResetAutoAttack); } }; Orbwalker.OnPostAttack += (AttackableUnit target, EventArgs args) => { if (getCheckBoxItem(comboMenu, "combo.items") && target != null && Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo)) { if (Spells.Tiamat.IsReady()) { Spells.Tiamat.Cast(); } if (Spells.Hydra.IsReady()) { Spells.Hydra.Cast(); } } }; comboMenu = IreliaMenu.comboMenu; targetSelectorMenu = IreliaMenu.targetSelectorMenu; harassMenu = IreliaMenu.harassMenu; laneclearMenu = IreliaMenu.laneclearMenu; drawingsMenu = IreliaMenu.drawingsMenu; miscMenu = IreliaMenu.miscMenu; fleeMenu = IreliaMenu.fleeMenu; }