Core/Banks: Fix some bank exploits

Re-implement the cheat checks removed in a12501fb5e and check if Player can interact with the Banker when handling bank-related opcodes.
This commit is contained in:
jackpoz committed 2014-06-07 22:47:50 +02:00
1 parent 4ec84fd1ec
commit 5fee5b0125
4 files changed
+62 -7

No files matched your search

+2 -1
View File
@@ -123,7 +123,8 @@ WorldSession::WorldSession(uint32 id, WorldSocket* sock, AccountTypes sec, uint8
isRecruiter(isARecruiter),
_RBACData(NULL),
expireTime(60000), // 1 min after socket loss, session is deleted
forceExit(false)
forceExit(false),
m_currentBankerGUID(0)
{
memset(m_Tutorials, 0, sizeof(m_Tutorials));