aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authorn0n4m3 <none@none>2010-01-01 17:29:53 +0100
committern0n4m3 <none@none>2010-01-01 17:29:53 +0100
commitf497ae3ae07d3a5652bf3d6ddfbfedb2235affc9 (patch)
treeda2e5fbec43de1bb54fc7606443114380663d6d6 /src/game/Player.cpp
parent70f452a838981ea09de05f022543a94d733c537b (diff)
Fixed instance reset when high server uptime, thx Wowka321
--HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index f1f6a266ef0..8c98e1c0876 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -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);
}
}