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 &&
|
return GetMaxStackSize() == 1 &&
|
||||||
Class != ITEM_CLASS_CONSUMABLE &&
|
Class != ITEM_CLASS_CONSUMABLE &&
|
||||||
Class != ITEM_CLASS_QUEST &&
|
Class != ITEM_CLASS_QUEST &&
|
||||||
!HasFlag(ITEM_FLAG_NO_CREATOR) &&
|
!HasFlag(ITEM_FLAG_NO_CREATOR);
|
||||||
ItemId != 6948; /*Hearthstone*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[[nodiscard]] bool CanChangeEquipStateInCombat() const
|
[[nodiscard]] bool CanChangeEquipStateInCombat() const
|
||||||
|
|||||||
@@ -1759,7 +1759,7 @@ void Spell::DoCreateItem(uint8 /*effIndex*/, uint32 itemId)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// set the "Crafted by ..." property of the item
|
// 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());
|
pItem->SetGuidValue(ITEM_FIELD_CREATOR, player->GetGUID());
|
||||||
|
|
||||||
// send info to the client
|
// send info to the client
|
||||||
|
|||||||
Reference in New Issue
Block a user