fix: Fixes food stacking for poisoned food. (#987)
This commit is contained in:
parent
0d9259e4cd
commit
f91ebe8183
1 changed files with 13 additions and 0 deletions
|
|
@ -48,6 +48,19 @@ namespace Server.Items
|
|||
}
|
||||
}
|
||||
|
||||
public override bool CanStackWith(Item dropped)
|
||||
{
|
||||
if (dropped is Food food)
|
||||
{
|
||||
if (Poison != food.Poison || Poisoner != food.Poisoner)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return base.CanStackWith(dropped);
|
||||
}
|
||||
|
||||
|
||||
public virtual bool Eat(Mobile from)
|
||||
{
|
||||
// Fill the Mobile with FillFactor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue