ArcAnnihilation.Core.SparkSpam C# (CSharp) Method

SparkSpam() private static method

private static SparkSpam ( Hero me ) : void
me Hero
return void
        private static void SparkSpam(Hero me)
        {
            Ability spell;
            foreach (var hero in Objects.Tempest.GetCloneList(me))
            {
                spell = hero.Spellbook.Spell3;
                if (spell == null || !spell.CanBeCasted() || !Utils.SleepCheck("spam" + hero.Handle)) continue;
                spell.UseAbility(Game.MousePosition);
                Utils.Sleep(1000, "spam" + hero.Handle);
            }
            if (!me.IsAlive || !Utils.SleepCheck("spam" + me.Handle)) return;
            spell = me.Spellbook.Spell3;
            if (spell == null || !spell.CanBeCasted()) return;
            spell.UseAbility(Game.MousePosition);
            Utils.Sleep(1000, "spam" + me.Handle);
        }