Core/Instances: Resurrect a dead player (with corpse) before enter to instance. Original patch by Den

This commit is contained in:
Spp
2011-09-16 21:54:45 +02:00
parent 2f83db28f2
commit d0f9406a10
+2
View File
@@ -213,6 +213,8 @@ bool MapManager::CanPlayerEnter(uint32 mapid, Player* player, bool loginCheck)
return false;
}
sLog->outDebug(LOG_FILTER_MAPS, "MAP: Player '%s' has corpse in instance '%s' and can enter.", player->GetName(), mapName);
player->ResurrectPlayer(0.5f, false);
player->SpawnCorpseBones();
}
else
sLog->outDebug(LOG_FILTER_MAPS, "Map::CanPlayerEnter - player '%s' is dead but does not have a corpse!", player->GetName());