Feat(Core/Item): Proper way to add item signature (#1623)

Co-authored-by: PolarCookie <PolarCookie@users.noreply.github.com>
This commit is contained in:
Viste
2019-03-27 18:44:56 +03:00
committed by Nefertumm
parent 6a05b0402c
commit 801847b718
2 changed files with 11 additions and 2 deletions

View File

@@ -1771,7 +1771,7 @@ void Spell::DoCreateItem(uint8 /*effIndex*/, uint32 itemId)
}
// set the "Crafted by ..." property of the item
if (pItem->GetTemplate()->Class != ITEM_CLASS_CONSUMABLE && pItem->GetTemplate()->Class != ITEM_CLASS_QUEST && newitemid != 6265 && newitemid != 6948)
if (pItem->GetTemplate()->HasSignature())
pItem->SetUInt32Value(ITEM_FIELD_CREATOR, player->GetGUIDLow());
// send info to the client