mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
Fixed MSG_PVP_LOG_DATA. Players should be teleported to nearest GY instead of homebind location (by EvilstaR).
This commit is contained in:
parent
9256d68882
commit
3423b5dbb2
2 changed files with 4 additions and 3 deletions
|
|
@ -1306,7 +1306,8 @@ void BattleGroundMgr::BuildPvpLogDataPacket(WorldPacket *data, BattleGround *bg)
|
||||||
for(int i = 1; i >= 0; --i)
|
for(int i = 1; i >= 0; --i)
|
||||||
{
|
{
|
||||||
*data << uint32(bg->m_ArenaTeamRatingChanges[i]);
|
*data << uint32(bg->m_ArenaTeamRatingChanges[i]);
|
||||||
*data << uint32(3999); // huge thanks for TOM_RUS for this!
|
*data << uint32(3999); // huge thanks for TOM_RUS for this!
|
||||||
|
*data << uint32(0); // added again in 3.1
|
||||||
sLog.outDebug("rating change: %d", bg->m_ArenaTeamRatingChanges[i]);
|
sLog.outDebug("rating change: %d", bg->m_ArenaTeamRatingChanges[i]);
|
||||||
}
|
}
|
||||||
for(int i = 1; i >= 0; --i)
|
for(int i = 1; i >= 0; --i)
|
||||||
|
|
|
||||||
|
|
@ -17059,8 +17059,8 @@ void Player::UpdateHomebindTime(uint32 time)
|
||||||
{
|
{
|
||||||
if (time >= m_HomebindTimer)
|
if (time >= m_HomebindTimer)
|
||||||
{
|
{
|
||||||
// teleport to homebind location
|
// teleport to nearest graveyard
|
||||||
TeleportTo(m_homebindMapId, m_homebindX, m_homebindY, m_homebindZ, GetOrientation());
|
RepopAtGraveyard();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
m_HomebindTimer -= time;
|
m_HomebindTimer -= time;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue