mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +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)
|
if(i == slot)
|
||||||
continue;
|
continue;
|
||||||
Item *pItem2 = GetItemByPos( INVENTORY_SLOT_BAG_0, i );
|
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)
|
for(uint32 enchant_slot = SOCK_ENCHANTMENT_SLOT; enchant_slot < SOCK_ENCHANTMENT_SLOT+3; ++enchant_slot)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9675"
|
#define REVISION_NR "9676"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue