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

This is not big problem in any case and will allow buy slots
    in bank windows open using .bank command.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-07-30 11:07:00 +08:00
parent e864cbed8c
commit a12501fb5e
+2
View File
@@ -862,12 +862,14 @@ void WorldSession::HandleBuyBankSlotOpcode(WorldPacket& recvPacket)
recvPacket >> guid; recvPacket >> guid;
// cheating protection // 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); Creature *pCreature = GetPlayer()->GetNPCIfCanInteractWith(guid, UNIT_NPC_FLAG_BANKER);
if(!pCreature) if(!pCreature)
{ {
sLog.outDebug( "WORLD: HandleBuyBankSlotOpcode - Unit (GUID: %u) not found or you can't interact with him.", uint32(GUID_LOPART(guid)) ); sLog.outDebug( "WORLD: HandleBuyBankSlotOpcode - Unit (GUID: %u) not found or you can't interact with him.", uint32(GUID_LOPART(guid)) );
return; return;
} }
*/
uint32 slot = _player->GetBankBagSlotCount(); uint32 slot = _player->GetBankBagSlotCount();