static Summoners()
        {
            try
            {
                // ReSharper disable once StringLiteralTypo
                BlueSmite = new SummonerSpell { Name = "s5_summonersmiteplayerganker", Range = 750f };
                RedSmite = new SummonerSpell { Name = "s5_summonersmiteduel", Range = 750f };
                Ignite = new SummonerSpell { Name = "SummonerDot", Range = 600f };
                Smite = new SummonerSpell { Name = "SummonerSmite", Range = 750f };

                SummonerSpells = new List<SummonerSpell> { Ignite, Smite, BlueSmite, RedSmite };
            }
            catch (Exception ex)
            {
                SummonerSpells = new List<SummonerSpell>();
                Global.Logger.AddItem(new LogItem(ex));
            }
        }
Exemple #2
0
 public static bool Exists(this SummonerSpell spell)
 {
     return(spell.Slot != SpellSlot.Unknown);
 }
Exemple #3
0
 public static bool IsReady(this SummonerSpell spell)
 {
     return(spell.Slot != SpellSlot.Unknown && spell.Slot.IsReady());
 }
Exemple #4
0
 public static void Cast(this SummonerSpell spell, Vector3 position)
 {
     ObjectManager.Player.Spellbook.CastSpell(spell.Slot, position);
 }
Exemple #5
0
 public static void Cast(this SummonerSpell spell, Obj_AI_Hero target)
 {
     ObjectManager.Player.Spellbook.CastSpell(spell.Slot, target);
 }
Exemple #6
0
 public static void Cast(this SummonerSpell spell)
 {
     ObjectManager.Player.Spellbook.CastSpell(spell.Slot);
 }