Core/Items: allow heirlooms to stay equipped/usable even when the player has reached their max scaling level (they just stay at that power level)
This commit is contained in:
1 parent
73e26ebffe
commit
74345972e6
1 file changed
-5
@@ -10278,11 +10278,6 @@ InventoryResult Player::CanEquipItem(uint8 slot, uint16 &dest, Item* pItem, bool
|
||||
return EQUIP_ERR_CLIENT_LOCKED_OUT;
|
||||
}
|
||||
|
||||
ScalingStatDistributionEntry const* ssd = pProto->GetScalingStatDistribution() ? sScalingStatDistributionStore.LookupEntry(pProto->GetScalingStatDistribution()) : 0;
|
||||
// check allowed level (extend range to upper values if MaxLevel more or equal max player level, this let GM set high level with 1...max range items)
|
||||
if (ssd && ssd->Maxlevel < DEFAULT_MAX_LEVEL && ssd->Maxlevel < getLevel())
|
||||
return EQUIP_ERR_NOT_EQUIPPABLE;
|
||||
|
||||
uint8 eslot = FindEquipSlot(pProto, slot, swap);
|
||||
if (eslot == NULL_SLOT)
|
||||
return EQUIP_ERR_NOT_EQUIPPABLE;
|
||||
|
||||
Reference in new issue
Block a user