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