mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7326] Not allow have ammo_pouch and a quiver equipped in same time.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
218571a817
commit
8c701f6287
2 changed files with 2 additions and 3 deletions
|
|
@ -9930,8 +9930,7 @@ uint8 Player::CanEquipItem( uint8 slot, uint16 &dest, Item *pItem, bool swap, bo
|
|||
{
|
||||
if( ItemPrototype const* pBagProto = pBag->GetProto() )
|
||||
{
|
||||
if( pBagProto->Class==pProto->Class && pBagProto->SubClass==pProto->SubClass &&
|
||||
(!swap || pBag->GetSlot() != eslot ) )
|
||||
if( pBagProto->Class==pProto->Class && (!swap || pBag->GetSlot() != eslot ) )
|
||||
{
|
||||
if(pBagProto->SubClass == ITEM_SUBCLASS_AMMO_POUCH)
|
||||
return EQUIP_ERR_CAN_EQUIP_ONLY1_AMMOPOUCH;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "7325"
|
||||
#define REVISION_NR "7326"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue