*Update heal calculation formula for Death Strike and apply improved death strike bonus if avalible

*Use floor() function for rounding in rep gain calculation
*Add some debug info to WorldSession::HandleMoveWorldportAckOpcode()

--HG--
branch : trunk
This commit is contained in:
QAston
2009-07-18 15:00:36 +02:00
parent 7b1a842041
commit 8499812eb6
3 changed files with 17 additions and 5 deletions

View File

@@ -67,7 +67,13 @@ void WorldSession::HandleMoveWorldportAckOpcode()
GetPlayer()->SetSemaphoreTeleportFar(false);
// relocate the player to the teleport destination
GetPlayer()->SetMap(MapManager::Instance().CreateMap(loc.mapid, GetPlayer())); GetPlayer()->Relocate(loc.coord_x, loc.coord_y, loc.coord_z, loc.orientation);
Map * newMap = MapManager::Instance().CreateMap(loc.mapid, GetPlayer());
if (!newMap)
{
sLog.outCrash("map %d could not be created for player "UI64FMTD, loc.mapid, GetPlayer()->GetGUID());
assert (false);
}
GetPlayer()->SetMap(newMap);
GetPlayer()->Relocate(loc.coord_x, loc.coord_y, loc.coord_z, loc.orientation);
GetPlayer()->SendInitialPacketsBeforeAddToMap();