[11479] Check map enter for proper deep map in corpse enter case.

This commit is contained in:
VladimirMangos 2011-05-13 13:27:39 +04:00
parent 116b053be8
commit cfcac0fa0c
2 changed files with 6 additions and 1 deletions

View file

@ -784,8 +784,13 @@ void WorldSession::HandleAreaTriggerOpcode(WorldPacket & recv_data)
// need find areatrigger to inner dungeon for landing point
if (at->target_mapId != corpseMapId)
{
if (AreaTrigger const* corpseAt = sObjectMgr.GetMapEntranceTrigger(corpseMapId))
{
at = corpseAt;
targetMapEntry = sMapStore.LookupEntry(at->target_mapId);
}
}
// now we can resurrect player, and then check teleport requirements
pl->ResurrectPlayer(0.5f);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11478"
#define REVISION_NR "11479"
#endif // __REVISION_NR_H__