private static void Game_OnGameLoad(EventArgs args) { // Validate champion if (Player.ChampionName != champName) { return; } // Initialize spells Q = new Spell(SpellSlot.Q, 650); W = new Spell(SpellSlot.W, 900); E = new Spell(SpellSlot.E, 650); R = new Spell(SpellSlot.R, 650); SpellList.AddRange(new[] { Q, W, E, R }); Q.SetTargetted(0.25f, 1500); W.SetSkillshot(1.25f, 225, float.MaxValue, false, SkillshotType.SkillshotCircle); R.SetTargetted(0.25f, 1400); // Setup menu SetuptMenu(); // Initialize classes BalefulStrike.Initialize(Q, OW); DarkMatter.Initialize(W); // Register additional events Game.OnGameUpdate += Game_OnGameUpdate; Drawing.OnDraw += Drawing_OnDraw; }
private static void Game_OnGameLoad(EventArgs args) { // Validate champion if (player.ChampionName != champName) { return; } // Initialize spells Q = new Spell(SpellSlot.Q, 650); W = new Spell(SpellSlot.W, 900); E = new Spell(SpellSlot.E, 650); R = new Spell(SpellSlot.R, 650); // Add to spell list spellList.AddRange(new[] { Q, W, E, R }); // Finetune spells Q.SetTargetted(0.25f, 1500); W.SetSkillshot(1.25f, 225, float.MaxValue, false, SkillshotType.SkillshotCircle); R.SetTargetted(0.25f, 1400); // Define main combo mainCombo.Add(DamageLib.SpellType.DFG); mainCombo.Add(DamageLib.SpellType.Q); mainCombo.Add(DamageLib.SpellType.R); mainCombo.Add(DamageLib.SpellType.IGNITE); // Define Q dmg mainComboks1.Add(DamageLib.SpellType.Q); // Define R dmg mainComboks2.Add(DamageLib.SpellType.R); // Define Q+R dmg mainComboks3.Add(DamageLib.SpellType.Q); mainComboks3.Add(DamageLib.SpellType.R); // Define DFG+Q+R dmg mainComboks4.Add(DamageLib.SpellType.DFG); mainComboks4.Add(DamageLib.SpellType.Q); mainComboks4.Add(DamageLib.SpellType.R); // Setup menu SetuptMenu(); // Initialize classes BalefulStrike.Initialize(Q, OW); DarkMatter.Initialize(W); // Register additional events Game.OnGameUpdate += Game_OnGameUpdate; Drawing.OnDraw += Drawing_OnDraw; }