private static bool IsSummonerSpellReady(SummonerSpellSlot Slot) { SpellSlotID FindSlotID = (SpellSlotID)Enum.Parse(typeof(SpellSlotID), Enum.GetName(typeof(SummonerSpellSlot), Slot)); return(GetSpellClassByID(FindSlotID).IsSpellReady()); }
public static void CastSummonerSpell(SummonerSpellSlot Slot) { if (Utils.IsGameOnDisplay() && IsSummonerSpellReady(Slot)) { Keyboard.SendKey((short)Slot); } }
public static void CastSummonerSpell(SummonerSpellSlot Slot, Point SpellLocation) { if (Utils.IsGameOnDisplay() && IsSummonerSpellReady(Slot)) { Mouse.MouseMove(SpellLocation.X, SpellLocation.Y); Keyboard.SendKey((short)Slot); } }
public static void CastSummonerSpell(SummonerSpellSlot Slot, int X, int Y) { if (Utils.IsGameOnDisplay() && IsSummonerSpellReady(Slot)) { Mouse.MouseMove(X, Y); Keyboard.SendKey((short)Slot); } }
/// <summary> /// Checks whether if I(player) have a given summoner spell on the slot provided. /// </summary> /// <param name="summSpell"></param> /// <param name="summSpellSlot"></param> /// <returns></returns> public static bool IHaveSpellOnSlot(SummonerSpellsEnum summSpell, SummonerSpellSlot summSpellSlot) { switch (summSpellSlot) { case SummonerSpellSlot.First: return(SummonerSpellsNameMappedDictionary[summSpell] == Slot1_D); case SummonerSpellSlot.Second: return(SummonerSpellsNameMappedDictionary[summSpell] == Slot2_F); } return(false); }