fix: Fixes splitting potions before error (#1862)
### Summary Most potions have various checks, such as a cooldown. This fixes an edge case where potions get split from their stack before erroring.
This commit is contained in:
parent
e6bfc45228
commit
38731d98b6
12 changed files with 169 additions and 99 deletions
|
|
@ -22,13 +22,7 @@ public partial class MelisandesFermentedWine : GreaterExplosionPotion
|
|||
|
||||
public override int LabelNumber => 1072114; // Melisande's Fermented Wine
|
||||
|
||||
public override void Drink(Mobile from)
|
||||
{
|
||||
if (MondainsLegacy.CheckML(from))
|
||||
{
|
||||
base.Drink(from);
|
||||
}
|
||||
}
|
||||
public override bool CanDrink(Mobile from) => MondainsLegacy.CheckML(from) && base.CanDrink(from);
|
||||
|
||||
public override void GetProperties(IPropertyList list)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue