Core/Instances: Resurrect a dead player (with corpse) before enter to instance. Original patch by Den
This commit is contained in:
@@ -213,6 +213,8 @@ bool MapManager::CanPlayerEnter(uint32 mapid, Player* player, bool loginCheck)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
sLog->outDebug(LOG_FILTER_MAPS, "MAP: Player '%s' has corpse in instance '%s' and can enter.", player->GetName(), mapName);
|
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
|
else
|
||||||
sLog->outDebug(LOG_FILTER_MAPS, "Map::CanPlayerEnter - player '%s' is dead but does not have a corpse!", player->GetName());
|
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