*Make .namego and .goname inherit phase from destination player
--HG-- branch : trunk
This commit is contained in:
@@ -865,6 +865,7 @@ bool ChatHandler::HandleNamegoCommand(const char* args)
|
|||||||
float x,y,z;
|
float x,y,z;
|
||||||
m_session->GetPlayer()->GetClosePoint(x,y,z,target->GetObjectSize());
|
m_session->GetPlayer()->GetClosePoint(x,y,z,target->GetObjectSize());
|
||||||
target->TeleportTo(m_session->GetPlayer()->GetMapId(),x,y,z,target->GetOrientation());
|
target->TeleportTo(m_session->GetPlayer()->GetMapId(),x,y,z,target->GetOrientation());
|
||||||
|
target->SetPhaseMask(m_session->GetPlayer()->GetPhaseMask(), true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -1002,6 +1003,7 @@ bool ChatHandler::HandleGonameCommand(const char* args)
|
|||||||
target->GetContactPoint(_player,x,y,z);
|
target->GetContactPoint(_player,x,y,z);
|
||||||
|
|
||||||
_player->TeleportTo(target->GetMapId(), x, y, z, _player->GetAngle(target), TELE_TO_GM_MODE);
|
_player->TeleportTo(target->GetMapId(), x, y, z, _player->GetAngle(target), TELE_TO_GM_MODE);
|
||||||
|
_player->SetPhaseMask(target->GetPhaseMask(), true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user