[9676] Not counting gems at broken item for meta gem requirements.

This is fit as cleint show meta gem state and fix cheating with gems at broken items.
This commit is contained in:
VladimirMangos 2010-04-05 22:06:32 +04:00
parent b7204c9e8d
commit d6cd1dcc27
2 changed files with 2 additions and 2 deletions

View file

@ -18562,7 +18562,7 @@ bool Player::EnchantmentFitsRequirements(uint32 enchantmentcondition, int8 slot)
if(i == slot)
continue;
Item *pItem2 = GetItemByPos( INVENTORY_SLOT_BAG_0, i );
if(pItem2 && pItem2->GetProto()->Socket[0].Color)
if(pItem2 && !pItem2->IsBroken() && pItem2->GetProto()->Socket[0].Color)
{
for(uint32 enchant_slot = SOCK_ENCHANTMENT_SLOT; enchant_slot < SOCK_ENCHANTMENT_SLOT+3; ++enchant_slot)
{