Core/Item: Item Signature
Port From (https://github.com/TrinityCore/TrinityCore/commit/e182a38b014f5538c42432f871e094dc79c2b131)
This commit is contained in:
@@ -40,6 +40,15 @@ namespace Game.Entities
|
||||
return ExtendedData.Display[locale];
|
||||
}
|
||||
|
||||
public bool HasSignature()
|
||||
{
|
||||
return GetMaxStackSize() == 1 &&
|
||||
GetClass() != ItemClass.Consumable &&
|
||||
GetClass() != ItemClass.Quest &&
|
||||
!GetFlags().HasFlag(ItemFlags.NoCreator) &&
|
||||
GetId() != 6948; /*Hearthstone*/
|
||||
}
|
||||
|
||||
public bool CanChangeEquipStateInCombat()
|
||||
{
|
||||
switch (GetInventoryType())
|
||||
|
||||
@@ -1031,7 +1031,7 @@ namespace Game.Spells
|
||||
}
|
||||
|
||||
// set the "Crafted by ..." property of the item
|
||||
if (pItem.GetTemplate().GetClass() != ItemClass.Consumable && pItem.GetTemplate().GetClass() != ItemClass.Quest && newitemid != 6265 && newitemid != 6948)
|
||||
if (pItem.GetTemplate().HasSignature())
|
||||
pItem.SetCreator(player.GetGUID());
|
||||
|
||||
// send info to the client
|
||||
|
||||
Reference in New Issue
Block a user