Exemple #1
0
        public override bool CanBeCasted()
        {
            var bottleRegen = Hero.FindModifier(Modifiers.BottleRegeneration);

            return(base.CanBeCasted() && Menu.Recovery.IsEnabled(Name) && Item.CurrentCharges > 0 &&
                   (bottleRegen == null || bottleRegen.RemainingTime < Game.Ping / 1000 ||
                    Sleeper.Sleeping("AutoBottle")) &&
                   (Hero.Health < Hero.MaximumHealth || Hero.Mana < Hero.MaximumMana));
        }
Exemple #2
0
 public override bool CanBeCasted()
 {
     return(!Sleeper.Sleeping(Name) && Item != null && Hero.HasModifier(Modifiers.FountainRegeneration) &&
            (Hero.Health < Hero.MaximumHealth || Hero.Mana < Hero.MaximumMana));
 }
Exemple #3
0
 public virtual bool CanBeCasted()
 {
     return(!Sleeper.Sleeping(Name) && Item != null && Item.CanBeCasted());
 }
Exemple #4
0
 public virtual bool CanBeCasted()
 {
     return(!Sleeper.Sleeping(Name) && powerTreads != null);
 }