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