Send SMSG_CORPSE_NOT_IN_INSTANCE if player in ghost form tries to enter an instance without player's corpse.

Signed-off-by: XTZGZoReX <xtzgzorex@gmail.com>
This commit is contained in:
Spp 2010-05-27 20:59:20 +02:00 committed by XTZGZoReX
parent 86bef7ace5
commit 4e61280466
3 changed files with 5 additions and 3 deletions

View file

@ -217,7 +217,9 @@ bool MapManager::CanPlayerEnter(uint32 mapid, Player* player)
if (!instance_map)
{
player->GetSession()->SendAreaTriggerMessage("You cannot enter %s while in a ghost mode", mapName);
WorldPacket data(SMSG_CORPSE_IS_NOT_IN_INSTANCE);
player->GetSession()->SendPacket(&data);
DEBUG_LOG("MAP: Player '%s' doesn't has a corpse in instance '%s' and can't enter", player->GetName(), mapName);
return false;
}

View file

@ -1312,7 +1312,7 @@ OpcodeHandler opcodeTable[NUM_MSG_TYPES] =
/*0x503*/ { "UMSG_UNKNOWN_1283", STATUS_NEVER, &WorldSession::Handle_NULL },
/*0x504*/ { "UMSG_UNKNOWN_1284", STATUS_NEVER, &WorldSession::Handle_NULL },
/*0x505*/ { "UMSG_UNKNOWN_1285", STATUS_NEVER, &WorldSession::Handle_NULL },
/*0x506*/ { "UMSG_UNKNOWN_1286", STATUS_NEVER, &WorldSession::Handle_NULL },
/*0x506*/ { "SMSG_CORPSE_IS_NOT_IN_INSTANCE", STATUS_NEVER, &WorldSession::Handle_ServerSide },
/*0x507*/ { "UMSG_UNKNOWN_1287", STATUS_NEVER, &WorldSession::Handle_NULL },
/*0x508*/ { "CMSG_SET_ALLOW_LOW_LEVEL_RAID1", STATUS_NEVER, &WorldSession::Handle_NULL },
/*0x509*/ { "CMSG_SET_ALLOW_LOW_LEVEL_RAID2", STATUS_NEVER, &WorldSession::Handle_NULL },

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9984"
#define REVISION_NR "9985"
#endif // __REVISION_NR_H__