[8244] Skip cheating check for buy bank slot opcode.

This is not big problem in any case and will allow buy slots
in bank windows open using .bank command.
This commit is contained in:
VladimirMangos 2009-07-25 06:45:20 +04:00
parent 4c26accd39
commit bd1ea72043
2 changed files with 3 additions and 1 deletions

View file

@ -860,12 +860,14 @@ void WorldSession::HandleBuyBankSlotOpcode(WorldPacket& recvPacket)
recvPacket >> guid;
// cheating protection
/* not critical if "cheated", and check skip allow by slots in bank windows open by .bank command.
Creature *pCreature = GetPlayer()->GetNPCIfCanInteractWith(guid, UNIT_NPC_FLAG_BANKER);
if(!pCreature)
{
sLog.outDebug( "WORLD: HandleBuyBankSlotOpcode - Unit (GUID: %u) not found or you can't interact with him.", uint32(GUID_LOPART(guid)) );
return;
}
*/
uint32 slot = _player->GetBankBagSlotCount();