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