Skip to content

Commit

Permalink
Send SMSG_CORPSE_NOT_IN_INSTANCE if player in ghost form tries to ent…
Browse files Browse the repository at this point in the history
…er an instance without player's corpse.

Signed-off-by: XTZGZoReX <xtzgzorex@gmail.com>
  • Loading branch information
Spp authored and XTZGZoReX committed May 27, 2010
1 parent 0e499f8 commit c6112dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/game/MapManager.cpp
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/game/Opcodes.cpp
Expand Up @@ -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 },
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9984"
#define REVISION_NR "9985"
#endif // __REVISION_NR_H__

0 comments on commit c6112dc

Please sign in to comment.