protected override void OnLoad() { _ultimate = new UltimateManager { Combo = true, Assisted = true, Auto = true, Flash = true, Required = true, Force = true, Gapcloser = false, GapcloserDelay = false, Interrupt = true, InterruptDelay = false, DamageCalculation = hero => CalcComboDamage( hero, Menu.Item(Menu.Name + ".combo.q").GetValue<bool>() && Q.IsReady(), Menu.Item(Menu.Name + ".combo.w").GetValue<bool>() && W.IsReady(), Menu.Item(Menu.Name + ".combo.e").GetValue<bool>() && E.IsReady(), true) }; Interrupter2.OnInterruptableTarget += OnInterruptableTarget; InitiatorManager.OnAllyInitiator += OnAllyInitiator; Spellbook.OnCastSpell += OnSpellbookCastSpell; Ball.OnPositionChange += OnBallPositionChange; AntiGapcloser.OnEnemyGapcloser += OnEnemyGapcloser; CustomEvents.Unit.OnDash += OnUnitDash; Drawing.OnDraw += OnDrawingDraw; Obj_AI_Base.OnProcessSpellCast += OnObjAiBaseProcessSpellCast; }
protected override void SetupSpells() { Q = new Spell(SpellSlot.Q, 825f, DamageType.Magical); Q.SetSkillshot(0.13f, 115f, 1400f, false, SkillshotType.SkillshotCircle); W = new Spell(SpellSlot.W, float.MaxValue, DamageType.Magical); W.SetSkillshot(0f, 220f, float.MaxValue, false, SkillshotType.SkillshotCircle); E = new Spell(SpellSlot.E, 1095f, DamageType.Magical); E.SetSkillshot(0.25f, 125f, 1700f, false, SkillshotType.SkillshotLine); R = new Spell(SpellSlot.R, float.MaxValue, DamageType.Magical); R.SetSkillshot(0.75f, 375f, float.MaxValue, false, SkillshotType.SkillshotCircle); Ultimate = new UltimateManager { Combo = true, Assisted = true, Auto = true, Flash = true, Required = true, Force = true, Gapcloser = false, GapcloserDelay = false, Interrupt = true, InterruptDelay = false, Spells = Spells, DamageCalculation = (hero, resMulti, rangeCheck) => CalcComboDamage( hero, resMulti, rangeCheck, Menu.Item(Menu.Name + ".combo.q").GetValue<bool>(), Menu.Item(Menu.Name + ".combo.w").GetValue<bool>(), Menu.Item(Menu.Name + ".combo.e").GetValue<bool>(), true) }; }