private static void Game_OnGameLoad(EventArgs args) { // Validate Champion if (player.ChampionName != CHAMP_NAME) { return; } // Initialize classes SpellManager.Initialize(); Config.Initialize(); SoulBoundSaver.Initialize(); // Enable damage indicators Utility.HpBarDamageIndicator.DamageToUnit = Damages.GetTotalDamage; Utility.HpBarDamageIndicator.Enabled = true; // Enable E damage indicators CustomDamageIndicator.Initialize(Damages.GetRendDamage); // Listen to additional events Game.OnGameUpdate += Game_OnGameUpdate; Spellbook.OnCastSpell += Spellbook_OnCastSpell; Drawing.OnDraw += Drawing_OnDraw; Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; CustomEvents.Unit.OnDash += Unit_OnDash; Orbwalking.AfterAttack += ActiveModes.Orbwalking_AfterAttack; Orbwalking.OnNonKillableMinion += Orbwalking_OnNonKillableMinion; }
public static void OnLoad(EventArgs args) { // Validate champion if (HeroManager.Player.ChampionName != "Kalista") { return; } // Initialize classes Config.Initialize(); SoulBoundSaver.Initialize(); ModeLogic.Initialize(); SentinelManager.Initialize(); // Enable E damage indicators //DamageIndicator.Initialize(Damages.GetRendDamage); CNLib.DamageIndicator.Enabled = true; CNLib.DamageIndicator.Fill = true; CNLib.DamageIndicator.DamageToUnit = Damages.GetRendDamage; // Listen to some required events Drawing.OnDraw += OnDraw; Spellbook.OnCastSpell += OnCastSpell; Orbwalking.OnAttack += OnPostAttack; //Game.OnPostTick += delegate { IsAfterAttack = false; }; }