protected override void SetupSpells() { Q = new Spell(SpellSlot.Q, Player.BoundingRadius + 600f, DamageType.Magical); Q.Range += GameObjects.EnemyHeroes.Select(e => e.BoundingRadius).DefaultIfEmpty(25).Min(); Q.SetTargetted(0.15f, 2050f); W = new Spell(SpellSlot.W, 700f, DamageType.Magical); W.SetSkillshot(1f, 300f, float.MaxValue, false, SkillshotType.SkillshotCircle); E = new Spell(SpellSlot.E, 525f, DamageType.Magical); E.SetSkillshot(0f, 90f, 800f, false, SkillshotType.SkillshotLine); R = new Spell(SpellSlot.R, 700f, DamageType.Magical); R.SetSkillshot(0.2f, 300f, float.MaxValue, false, SkillshotType.SkillshotCircle); _ultimate = new UltimateManager { Combo = true, Assisted = true, Auto = true, Flash = false, Required = true, Force = true, Gapcloser = false, GapcloserDelay = false, Interrupt = true, InterruptDelay = true, DamageCalculation = (hero, resMulti, rangeCheck) => CalcComboDamage( hero, resMulti, rangeCheck, Menu.Item(Menu.Name + ".combo.q").GetValue<bool>(), Menu.Item(Menu.Name + ".combo.e").GetValue<bool>(), true) }; }
protected override void OnLoad() { _ultimate = new UltimateManager { Combo = true, Assisted = true, Auto = true, Flash = false, Required = true, Force = true, Gapcloser = false, GapcloserDelay = false, Interrupt = true, InterruptDelay = true, DamageCalculation = hero => CalcComboDamage( hero, Menu.Item(Menu.Name + ".combo.q").GetValue<bool>() && Q.IsReady(), Menu.Item(Menu.Name + ".combo.e").GetValue<bool>() && E.IsReady(), true) }; Orbwalking.BeforeAttack += OnOrbwalkingBeforeAttack; Orbwalking.AfterAttack += OnOrbwalkingAfterAttack; AntiGapcloser.OnEnemyGapcloser += OnEnemyGapcloser; Interrupter2.OnInterruptableTarget += OnInterruptableTarget; CustomEvents.Unit.OnDash += OnUnitDash; GameObject.OnCreate += OnGameObjectCreate; }