fix(Core/Items): Removed tradeable flag from items with temp enchants. (#7160)

Fixed #6325.

Co-authored-by: Stefano Borzì <stefanoborzi32@gmail.com>
This commit is contained in:
UltraNix 2021-08-05 18:37:10 +02:00 committed by GitHub
parent 14b3655f33
commit d2e84eabb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3070,6 +3070,9 @@ void Spell::EffectEnchantItemTmp(SpellEffIndex effIndex)
// add new enchanting if equipped
item_owner->ApplyEnchantment(itemTarget, TEMP_ENCHANTMENT_SLOT, true);
item_owner->RemoveTradeableItem(itemTarget);
itemTarget->ClearSoulboundTradeable(item_owner);
}
void Spell::EffectTameCreature(SpellEffIndex /*effIndex*/)