[12187] Fix item random properties and suffixes

Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
This commit is contained in:
Yaki Khadafi 2012-09-05 20:36:38 +03:00 committed by Antz
parent c58ffa3c41
commit 4049442c80
5 changed files with 30 additions and 9 deletions

View file

@ -998,6 +998,12 @@ bool Item::IsBoundByEnchant() const
if (!enchant_id)
continue;
if (enchant_slot == TRANSMOGRIFY_ENCHANTMENT_SLOT)
return true;
if (enchant_slot > PRISMATIC_ENCHANTMENT_SLOT && enchant_slot < PROP_ENCHANTMENT_SLOT_0)
continue;
SpellItemEnchantmentEntry const* enchantEntry = sSpellItemEnchantmentStore.LookupEntry(enchant_id);
if (!enchantEntry)
continue;