mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[9515] Fix a possible exploit in CMSG_HEARTH_AND_RESURRECT
Signed-off-by: Lightguard <Lightguard@tauri.hu>
This commit is contained in:
parent
6af247d34f
commit
9626d3333e
3 changed files with 33 additions and 29 deletions
|
|
@ -240,7 +240,7 @@ enum AreaFlags
|
||||||
AREA_FLAG_OUTDOOR_PVP = 0x01000000, // Wintergrasp and it's subzones
|
AREA_FLAG_OUTDOOR_PVP = 0x01000000, // Wintergrasp and it's subzones
|
||||||
AREA_FLAG_UNK9 = 0x02000000, // unknown
|
AREA_FLAG_UNK9 = 0x02000000, // unknown
|
||||||
AREA_FLAG_UNK10 = 0x04000000, // unknown
|
AREA_FLAG_UNK10 = 0x04000000, // unknown
|
||||||
AREA_FLAG_OUTDOOR_PVP2 = 0x08000000 // Wintergrasp and it's subzones
|
AREA_FLAG_CAN_HEARTH_AND_RES = 0x08000000 // Wintergrasp and it's subzones
|
||||||
// 0x20000000 not flyable?
|
// 0x20000000 not flyable?
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1578,6 +1578,10 @@ void WorldSession::HandleHearthandResurrect(WorldPacket & /*recv_data*/)
|
||||||
{
|
{
|
||||||
sLog.outDebug("WORLD: CMSG_HEARTH_AND_RESURRECT");
|
sLog.outDebug("WORLD: CMSG_HEARTH_AND_RESURRECT");
|
||||||
|
|
||||||
|
AreaTableEntry const* atEntry = sAreaStore.LookupEntry(_player->GetAreaId());
|
||||||
|
if(!atEntry || !(atEntry->flags & AREA_FLAG_CAN_HEARTH_AND_RES))
|
||||||
|
return;
|
||||||
|
|
||||||
// Can't use in flight
|
// Can't use in flight
|
||||||
if (_player->isInFlight())
|
if (_player->isInFlight())
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9514"
|
#define REVISION_NR "9515"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue