item stack name verification

This commit is contained in:
mark 2007-03-09 18:29:37 +00:00
parent 3bfe6ba129
commit 4e9303215a

View file

@ -1475,7 +1475,7 @@ namespace Server
public virtual bool StackWith( Mobile from, Item dropped, bool playSound )
{
if ( Stackable && dropped.Stackable && dropped.GetType() == GetType() && dropped.ItemID == ItemID && dropped.Hue == Hue && (dropped.Amount + Amount) <= 60000 )
if ( dropped.Stackable && Stackable && dropped.GetType() == GetType() && dropped.ItemID == ItemID && dropped.Hue == Hue && dropped.Name == Name && (dropped.Amount + Amount) <= 60000 )
{
if ( m_LootType != dropped.m_LootType )
m_LootType = LootType.Regular;