public override void Drink(Mobile from) { if (!PropertyEffect.VictimIsUnderEffects <BoneBreakerContext>(from)) { from.Stam += Scale(from, (int)(Refresh * from.StamMax)); PlayDrinkEffect(from); Consume(); } }
public override void Drink(Mobile from) { if (from.Stam < from.StamMax) { if (!PropertyEffect.VictimIsUnderEffects <BoneBreakerContext>(from)) { from.Stam += Scale(from, (int)(Refresh * from.StamMax)); PlayDrinkEffect(from); Consume(); } else { // TODO: Message? } } else { from.SendMessage("You decide against drinking this potion, as you are already at full stamina."); } }