aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Level1.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/Level1.cpp b/src/game/Level1.cpp
index d2eeb42971c..9092ffc17f2 100644
--- a/src/game/Level1.cpp
+++ b/src/game/Level1.cpp
@@ -865,6 +865,7 @@ bool ChatHandler::HandleNamegoCommand(const char* args)
float x,y,z;
m_session->GetPlayer()->GetClosePoint(x,y,z,target->GetObjectSize());
target->TeleportTo(m_session->GetPlayer()->GetMapId(),x,y,z,target->GetOrientation());
+ target->SetPhaseMask(m_session->GetPlayer()->GetPhaseMask(), true);
}
else
{
@@ -1002,6 +1003,7 @@ bool ChatHandler::HandleGonameCommand(const char* args)
target->GetContactPoint(_player,x,y,z);
_player->TeleportTo(target->GetMapId(), x, y, z, _player->GetAngle(target), TELE_TO_GM_MODE);
+ _player->SetPhaseMask(target->GetPhaseMask(), true);
}
else
{