Fixed instance reset when high server uptime, thx Wowka321

--HG--
branch : trunk
This commit is contained in:
n0n4m3
2010-01-01 17:29:53 +01:00
parent 70f452a838
commit f497ae3ae0
3 changed files with 46 additions and 6 deletions
+2
View File
@@ -19177,6 +19177,7 @@ void Player::UpdateHomebindTime(uint32 time)
if (time >= m_HomebindTimer)
{
// teleport to nearest graveyard
SetPhaseMask(1,true);
RepopAtGraveyard();
}
else
@@ -19192,6 +19193,7 @@ void Player::UpdateHomebindTime(uint32 time)
data << uint32(1);
GetSession()->SendPacket(&data);
sLog.outDebug("PLAYER: Player '%s' (GUID: %u) will be teleported to homebind in 60 seconds", GetName(),GetGUIDLow());
SetPhaseMask(2,true);
}
}