Ejemplo n.º 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));
        }
Ejemplo n.º 2
0
 public override bool CanBeCasted()
 {
     return(!Sleeper.Sleeping(Name) && Item != null && Hero.HasModifier(Modifiers.FountainRegeneration) &&
            (Hero.Health < Hero.MaximumHealth || Hero.Mana < Hero.MaximumMana));
 }
Ejemplo n.º 3
0
 public virtual bool CanBeCasted()
 {
     return(!Sleeper.Sleeping(Name) && Item != null && Item.CanBeCasted());
 }
Ejemplo n.º 4
0
 public virtual bool CanBeCasted()
 {
     return(!Sleeper.Sleeping(Name) && powerTreads != null);
 }