*Not allow have ammo_pouch and a quiver equipped in same time. - by balrok
--HG-- branch : trunk
This commit is contained in:
+1
-2
@@ -9780,8 +9780,7 @@ uint8 Player::CanEquipItem( uint8 slot, uint16 &dest, Item *pItem, bool swap, bo
|
|||||||
{
|
{
|
||||||
if( ItemPrototype const* pBagProto = pBag->GetProto() )
|
if( ItemPrototype const* pBagProto = pBag->GetProto() )
|
||||||
{
|
{
|
||||||
if( pBagProto->Class==pProto->Class && pBagProto->SubClass==pProto->SubClass &&
|
if( pBagProto->Class==pProto->Class && (!swap || pBag->GetSlot() != eslot ) )
|
||||||
(!swap || pBag->GetSlot() != eslot ) )
|
|
||||||
{
|
{
|
||||||
if(pBagProto->SubClass == ITEM_SUBCLASS_AMMO_POUCH)
|
if(pBagProto->SubClass == ITEM_SUBCLASS_AMMO_POUCH)
|
||||||
return EQUIP_ERR_CAN_EQUIP_ONLY1_AMMOPOUCH;
|
return EQUIP_ERR_CAN_EQUIP_ONLY1_AMMOPOUCH;
|
||||||
|
|||||||
Reference in New Issue
Block a user