fix(scripts/Commands): Avoid get gm phase when summoning (#3764)
This change avoids to set the same phase as the one the GM has to a player when this is summoned by command Co-authored-by: Si1ker <55638679+Sombranator@users.noreply.github.com>
This commit is contained in:
parent
b9c78740d9
commit
931609d2c2
1 changed files with 1 additions and 2 deletions
|
|
@ -723,8 +723,7 @@ public:
|
|||
// before GM
|
||||
float x, y, z;
|
||||
handler->GetSession()->GetPlayer()->GetClosePoint(x, y, z, target->GetObjectSize());
|
||||
if (target->TeleportTo(handler->GetSession()->GetPlayer()->GetMapId(), x, y, z, target->GetOrientation(), 0, handler->GetSession()->GetPlayer()))
|
||||
target->SetPhaseMask(handler->GetSession()->GetPlayer()->GetPhaseMask(), false);
|
||||
target->TeleportTo(handler->GetSession()->GetPlayer()->GetMapId(), x, y, z, target->GetOrientation(), 0, handler->GetSession()->GetPlayer());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue