Пример #1
0
        private static bool IsSummonerSpellReady(SummonerSpellSlot Slot)
        {
            SpellSlotID FindSlotID =
                (SpellSlotID)Enum.Parse(typeof(SpellSlotID), Enum.GetName(typeof(SummonerSpellSlot), Slot));

            return(GetSpellClassByID(FindSlotID).IsSpellReady());
        }
Пример #2
0
 public static void CastSummonerSpell(SummonerSpellSlot Slot)
 {
     if (Utils.IsGameOnDisplay() && IsSummonerSpellReady(Slot))
     {
         Keyboard.SendKey((short)Slot);
     }
 }
Пример #3
0
 public static void CastSummonerSpell(SummonerSpellSlot Slot, Point SpellLocation)
 {
     if (Utils.IsGameOnDisplay() && IsSummonerSpellReady(Slot))
     {
         Mouse.MouseMove(SpellLocation.X, SpellLocation.Y);
         Keyboard.SendKey((short)Slot);
     }
 }
Пример #4
0
 public static void CastSummonerSpell(SummonerSpellSlot Slot, int X, int Y)
 {
     if (Utils.IsGameOnDisplay() && IsSummonerSpellReady(Slot))
     {
         Mouse.MouseMove(X, Y);
         Keyboard.SendKey((short)Slot);
     }
 }
Пример #5
0
        /// <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);
        }