mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[7659] Added several security checks to prevent cheating using facked packets
This commit is contained in:
parent
bd56140537
commit
a0ef77af5b
6 changed files with 68 additions and 19 deletions
|
|
@ -417,13 +417,7 @@ class ObjectMgr
|
|||
return mGameObjectForQuestSet.find(entry) != mGameObjectForQuestSet.end();
|
||||
}
|
||||
|
||||
bool IsGuildVaultGameObject(Player *player, uint64 guid) const
|
||||
{
|
||||
if(GameObject *go = ObjectAccessor::GetGameObject(*player, guid))
|
||||
if(go->GetGoType() == GAMEOBJECT_TYPE_GUILD_BANK)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
bool IsGameObjectOfTypeInRange(Player *player, uint64 guid, GameobjectTypes type) const;
|
||||
|
||||
GossipText const* GetGossipText(uint32 Text_ID) const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue