fix(Core/Spells): No longer add a signature to items created by NPCs (#22415)

This commit is contained in:
Jelle Meeus
2025-07-03 17:35:06 +02:00
committed by GitHub
parent f0a38b3091
commit 7561147e7c
2 changed files with 2 additions and 3 deletions

View File

@@ -1759,7 +1759,7 @@ void Spell::DoCreateItem(uint8 /*effIndex*/, uint32 itemId)
}
// set the "Crafted by ..." property of the item
if (pItem->GetTemplate()->HasSignature())
if (m_caster->IsPlayer() && pItem->GetTemplate()->HasSignature())
pItem->SetGuidValue(ITEM_FIELD_CREATOR, player->GetGUID());
// send info to the client