/// <summary> /// Initializes a new instance of the <see cref="Ezreal" /> class. /// </summary> /// <param name="manaEnabled"> /// if set to <c> true </c> [mana enabled]. /// </param> /// <param name="orbwalker"> /// The orbwalker. /// </param> public Ezreal(bool manaEnabled, Orbwalking.Orbwalker orbwalker) { Q = new Spell(SpellSlot.Q, 1190); W = new Spell(SpellSlot.W, 950); R = new Spell(SpellSlot.R, 2200); Q.SetSkillshot(.25f, 60, 2000, true, SkillshotType.SkillshotLine); W.SetSkillshot(.25f, 80, 1600, false, SkillshotType.SkillshotLine); R.SetSkillshot(1, 160, 2000, false, SkillshotType.SkillshotLine); _manaManager = new Mana(Q, W, E, R, manaEnabled); // ReSharper disable once UnusedVariable var temp = new Menus.Ezreal(); Game.OnUpdate += OnUpdate; Game.OnUpdate += AutoEvents; EloBuddy.Drawing.OnDraw += OnDraw; EloBuddy.Drawing.OnDraw += OnDrawEnemy; Spellbook.OnCastSpell += OnCastSpell; //Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast; Orbwalker = orbwalker; }
/// <summary> /// Initializes a new instance of the <see cref="Ezreal" /> class. /// </summary> /// <param name="manaEnabled"> /// if set to <c> true </c> [mana enabled]. /// </param> /// <param name="orbwalker"> /// The orbwalker. /// </param> public Ezreal(bool manaEnabled, Orbwalking.Orbwalker orbwalker) { Q=new Spell(SpellSlot.Q, 1190); W=new Spell(SpellSlot.W, 950); R=new Spell(SpellSlot.R, 2200); Q.SetSkillshot(.25f, 60, 2000, true, SkillshotType.SkillshotLine); W.SetSkillshot(.25f, 80, 1600, false, SkillshotType.SkillshotLine); R.SetSkillshot(1, 160, 2000, false, SkillshotType.SkillshotLine); _manaManager=new Mana(Q, W, E, R, manaEnabled); // ReSharper disable once UnusedVariable var temp=new Menus.Ezreal(); Game.OnUpdate+=OnUpdate; Game.OnUpdate+=AutoEvents; LeagueSharp.Drawing.OnDraw+=OnDraw; LeagueSharp.Drawing.OnDraw+=OnDrawEnemy; Spellbook.OnCastSpell+=OnCastSpell; //Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast; _damageIndicator=new DamageIndicator(GetDamage, 2000); Orbwalker=orbwalker; }