mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 03:12:09 +01:00
Core/Items: Split SetSoulboundTradeable in two functions (Set and Clear)
Note: this is mostly for clarify action being done: ClearSoulboundTradeable better than SetSoulboundTradeable(..., ..., false)
This commit is contained in:
@@ -3575,7 +3575,7 @@ void Spell::EffectEnchantItemPerm(SpellEffIndex effIndex)
|
||||
// add new enchanting if equipped
|
||||
item_owner->ApplyEnchantment(itemTarget, PERM_ENCHANTMENT_SLOT, true);
|
||||
|
||||
itemTarget->SetSoulboundTradeable(NULL, item_owner, false);
|
||||
itemTarget->ClearSoulboundTradeable(item_owner);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3639,7 +3639,7 @@ void Spell::EffectEnchantItemPrismatic(SpellEffIndex effIndex)
|
||||
// add new enchanting if equipped
|
||||
item_owner->ApplyEnchantment(itemTarget, PRISMATIC_ENCHANTMENT_SLOT, true);
|
||||
|
||||
itemTarget->SetSoulboundTradeable(NULL, item_owner, false);
|
||||
itemTarget->ClearSoulboundTradeable(item_owner);
|
||||
}
|
||||
|
||||
void Spell::EffectEnchantItemTmp(SpellEffIndex effIndex)
|
||||
|
||||
Reference in New Issue
Block a user