Esempio n. 1
0
        public static Boolean PreCheck(Hero _Enemy)
        {
            if (_Enemy.IsValid == false)
            {
                return(false);
            }
            if (_Enemy.Health <= 1)
            {
                return(false);
            }
            if (_Enemy.IsVisible == false)
            {
                return(false);
            }
            if (_Enemy.IsAlive == false)
            {
                return(false);
            }
            if (Sleeper.IsSleep(_Enemy.Name))
            {
                return(false);
            }
            if (_Enemy.HasModifiers(Config._BlockModiffers, false))
            {
                return(false);
            }
            if (_Enemy.IsMagicImmune())
            {
                return(false);
            }

            return(true);
        }
Esempio n. 2
0
 public static bool ForcePreCheck(Hero _Enemy)
 {
     return(_Enemy.IsValid && _Enemy.Health > 1U && (_Enemy.IsVisible && _Enemy.IsAlive) && ((!Sleeper.IsSleep(_Enemy.Name) || !_Enemy.IsRotating()) && ((double)Core.Config._Items.Force.CastRange >= (double)Core.Config._Hero.Distance2D((Unit)_Enemy, false) && _Enemy.ClassId != ClassId.CDOTA_Unit_Hero_Bristleback)) && (!_Enemy.HasModifiers((IEnumerable <string>)Core.Config._BlockModiffers, false) && !_Enemy.IsMagicImmune() && !_Enemy.IsInvulnerable()));
 }
Esempio n. 3
0
 public static bool PreCheck(Hero _Enemy)
 {
     return(_Enemy.IsValid && _Enemy.Health > 1U && (_Enemy.IsVisible && _Enemy.IsAlive) && (!Sleeper.IsSleep(_Enemy.Name) && !_Enemy.HasModifiers((IEnumerable <string>)Core.Config._BlockModiffers, false) && (!_Enemy.IsMagicImmune() && !_Enemy.IsInvulnerable())));
 }