mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-27 07:36:23 +00:00
fix(Core/Spells): No longer add a signature to items created by NPCs (#22415)
This commit is contained in:
@@ -700,8 +700,7 @@ struct ItemTemplate
|
||||
return GetMaxStackSize() == 1 &&
|
||||
Class != ITEM_CLASS_CONSUMABLE &&
|
||||
Class != ITEM_CLASS_QUEST &&
|
||||
!HasFlag(ITEM_FLAG_NO_CREATOR) &&
|
||||
ItemId != 6948; /*Hearthstone*/
|
||||
!HasFlag(ITEM_FLAG_NO_CREATOR);
|
||||
}
|
||||
|
||||
[[nodiscard]] bool CanChangeEquipStateInCombat() const
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user