Ejemplo n.º 1
0
        public static AIHeroClient GetTargetNoCollision(Spell2 spell,
                                                        bool ignoreShield = true,
                                                        IEnumerable <AIHeroClient> ignoredChamps = null,
                                                        Vector3?rangeCheckFrom = null)
        {
            var t = GetTarget(ObjectManager.Player, spell.Range,
                              spell.DamageType, ignoreShield, ignoredChamps, rangeCheckFrom);

            if (spell.Collision && spell.GetPrediction(t).Hitchance != HitChance.Collision)
            {
                return(t);
            }

            return(null);
        }
Ejemplo n.º 2
0
        public static AIHeroClient GetTargetNoCollision(Spell2 spell,
            bool ignoreShield = true,
            IEnumerable<AIHeroClient> ignoredChamps = null,
            Vector3? rangeCheckFrom = null)
        {
            var t = GetTarget(ObjectManager.Player, spell.Range,
                spell.DamageType, ignoreShield, ignoredChamps, rangeCheckFrom);

            if (spell.Collision && spell.GetPrediction(t).Hitchance != HitChance.Collision)
            {
                return t;
            }

            return null;
        }
Ejemplo n.º 3
0
 public static bool IsReady(this Spell2 spell, int t = 0)
 {
     return(IsReady(spell.Instance, t));
 }