mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[9969] Additional check for HandleAutoBankItemOpcode.
This commit is contained in:
parent
e3955bbc59
commit
e55551013d
2 changed files with 9 additions and 1 deletions
|
|
@ -905,6 +905,14 @@ void WorldSession::HandleAutoBankItemOpcode(WorldPacket& recvPacket)
|
|||
return;
|
||||
}
|
||||
|
||||
// no-op: placed in same slot
|
||||
if(dest.size() == 1 && dest[0].pos == pItem->GetPos())
|
||||
{
|
||||
// just remove gray item state
|
||||
_player->SendEquipError( EQUIP_ERR_NONE, pItem, NULL );
|
||||
return;
|
||||
}
|
||||
|
||||
_player->RemoveItem(srcbag, srcslot, true);
|
||||
_player->BankItem( dest, pItem, true );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue