Core/Instances: Resurrect a dead player (with corpse) before enter to instance. Original patch by Den
This commit is contained in:
1 parent
2f83db28f2
commit
d0f9406a10
1 file changed
+2
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user