mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
[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:
parent
b7204c9e8d
commit
d6cd1dcc27
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue