From 241193cd0287c3d7a2cbaf7f2c5775d414b4d0b3 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 9 Jan 2022 16:31:12 +0100 Subject: Core/Items: Implemented many new enchantment flags --- src/server/game/Spells/Spell.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/server/game/Spells/Spell.cpp') diff --git a/src/server/game/Spells/Spell.cpp b/src/server/game/Spells/Spell.cpp index 8a3c26bd7b2..ad8e6d3191f 100644 --- a/src/server/game/Spells/Spell.cpp +++ b/src/server/game/Spells/Spell.cpp @@ -7087,7 +7087,7 @@ SpellCastResult Spell::CheckItems(int32* param1 /*= nullptr*/, int32* param2 /*= { if (!enchantEntry) return SPELL_FAILED_ERROR; - if (enchantEntry->Flags & ENCHANTMENT_CAN_SOULBOUND) + if (enchantEntry->GetFlags().HasFlag(SpellItemEnchantmentFlags::Soulbound)) return SPELL_FAILED_NOT_TRADEABLE; } break; @@ -7101,10 +7101,10 @@ SpellCastResult Spell::CheckItems(int32* param1 /*= nullptr*/, int32* param2 /*= if (item->GetOwner() != player) { uint32 enchant_id = spellEffectInfo.MiscValue; - SpellItemEnchantmentEntry const* pEnchant = sSpellItemEnchantmentStore.LookupEntry(enchant_id); - if (!pEnchant) + SpellItemEnchantmentEntry const* enchantEntry = sSpellItemEnchantmentStore.LookupEntry(enchant_id); + if (!enchantEntry) return SPELL_FAILED_ERROR; - if (pEnchant->Flags & ENCHANTMENT_CAN_SOULBOUND) + if (enchantEntry->GetFlags().HasFlag(SpellItemEnchantmentFlags::Soulbound)) return SPELL_FAILED_NOT_TRADEABLE; } -- cgit v1.2.3