Ejemplo n.º 1
0
        private void BarrelRoll()
        {
            var target = TargetSelector.GetTarget(
                Menu.Item("QRange").GetValue <Slider>().Value,
                TargetSelector.DamageType.Magical);

            if (target == null || !target.IsValid)
            {
                return;
            }

            if (target.HasBuffOfType(BuffType.Knockback))
            {
                return;
            }

            if (qLogic.CanThrowQ())
            {
                Variable.Spells[SpellSlot.Q].Cast(qLogic.QPred(target));
            }

            if (qLogic.CanExplodeQ(target))
            {
                Variable.Spells[SpellSlot.Q].Cast();
            }
        }