diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/MapManager.cpp | 4 | ||||
-rw-r--r-- | src/game/Opcodes.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/game/MapManager.cpp b/src/game/MapManager.cpp index a86bb910c20..49aba69a8c1 100644 --- a/src/game/MapManager.cpp +++ b/src/game/MapManager.cpp @@ -35,6 +35,7 @@ #include "Corpse.h" #include "ObjectMgr.h" #include "Language.h" +#include "WorldPacket.h" #define CLASS_LOCK Trinity::ClassLevelLockable<MapManager, ACE_Thread_Mutex> INSTANTIATE_SINGLETON_2(MapManager, CLASS_LOCK); @@ -215,7 +216,8 @@ bool MapManager::CanPlayerEnter(uint32 mapid, Player* player) if (!instance_map) { - player->GetSession()->SendAreaTriggerMessage(player->GetSession()->GetTrinityString(811), mapName); + WorldPacket data(SMSG_CORPSE_NOT_IN_INSTANCE); + player->GetSession()->SendPacket(&data); sLog.outDebug("MAP: Player '%s' doesn't has a corpse in instance '%s' and can't enter", player->GetName(), mapName); return false; } diff --git a/src/game/Opcodes.h b/src/game/Opcodes.h index 583d39932fb..c08c0284888 100644 --- a/src/game/Opcodes.h +++ b/src/game/Opcodes.h @@ -1322,7 +1322,7 @@ enum Opcodes UMSG_UNKNOWN_1283 = 0x503, UMSG_UNKNOWN_1284 = 0x504, UMSG_UNKNOWN_1285 = 0x505, - SMSG_UNKNOWN_1286 = 0x506, // ERR_CORPSE_IS_NOT_IN_INSTANCE = 0x1A8, + SMSG_CORPSE_NOT_IN_INSTANCE = 0x506, UMSG_UNKNOWN_1287 = 0x507, // not found CMSG_UNKNOWN_1288 = 0x508, // lua: SetAllowLowLevelRaid CMSG_UNKNOWN_1289 = 0x509, // lua: SetAllowLowLevelRaid |