Example #1
0
        private static void Ignite()
        {
            var autoIgnite = TargetSelector.GetTarget(MyActivator.Ignite.Range, DamageType.True);

            if (autoIgnite != null && autoIgnite.Health <= Player.GetSpellDamage(autoIgnite, MyActivator.Ignite.Slot) ||
                autoIgnite != null && autoIgnite.HealthPercent <= MissInopportuneMenu.SpellsIgniteFocus())
            {
                MyActivator.Ignite.Cast(autoIgnite);
            }
        }