Beispiel #1
0
 public static bool CastIngite(Obj_AI_Hero target)
 {
     var igniteSlot = target.GetIngiteSlot();
     if (igniteSlot != SpellSlot.Unknown && player.GetSpell(igniteSlot).State == SpellState.Ready)
         return player.Spellbook.CastSpell(igniteSlot, target);
     return false;
 }
Beispiel #2
0
        public static bool CastIngite(Obj_AI_Hero target)
        {
            var igniteSlot = target.GetIngiteSlot();

            if (igniteSlot != SpellSlot.Unknown && player.GetSpell(igniteSlot).State == SpellState.Ready)
            {
                return(player.Spellbook.CastSpell(igniteSlot, target));
            }
            return(false);
        }
Beispiel #3
0
        public static SpellSlot[] GetSpellSlots(this ComboSpell spell)
        {
            switch (spell)
            {
            case ComboSpell.Q:
            case ComboSpell.W:
            case ComboSpell.E:
            case ComboSpell.R:
                return(new[] { spell.GetSpell().Slot });

            case ComboSpell.IGNITE:
                return(new[] { player.GetIngiteSlot() });

            default:
                return(new[] { SpellSlot.Unknown });
            }
        }
Beispiel #4
0
        public static bool HasIgniteReady(this Obj_AI_Hero target)
        {
            var igniteSlot = target.GetIngiteSlot();

            return(igniteSlot != SpellSlot.Unknown && player.GetSpell(igniteSlot).State == SpellState.Ready);
        }
Beispiel #5
0
 public static bool HasIgnite(this Obj_AI_Hero target)
 {
     return(target.GetIngiteSlot() != SpellSlot.Unknown);
 }