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