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));
            }
        }
示例#2
0
 public static bool Exists(this SummonerSpell spell)
 {
     return(spell.Slot != SpellSlot.Unknown);
 }
示例#3
0
 public static bool IsReady(this SummonerSpell spell)
 {
     return(spell.Slot != SpellSlot.Unknown && spell.Slot.IsReady());
 }
示例#4
0
 public static void Cast(this SummonerSpell spell, Vector3 position)
 {
     ObjectManager.Player.Spellbook.CastSpell(spell.Slot, position);
 }
示例#5
0
 public static void Cast(this SummonerSpell spell, Obj_AI_Hero target)
 {
     ObjectManager.Player.Spellbook.CastSpell(spell.Slot, target);
 }
示例#6
0
 public static void Cast(this SummonerSpell spell)
 {
     ObjectManager.Player.Spellbook.CastSpell(spell.Slot);
 }