From 931609d2c25d02a5752d941b8bba23d8b08cb554 Mon Sep 17 00:00:00 2001 From: Silker <61223313+Si1ker@users.noreply.github.com> Date: Thu, 26 Nov 2020 06:12:22 -0600 Subject: [PATCH] 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> --- src/server/scripts/Commands/cs_misc.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/server/scripts/Commands/cs_misc.cpp b/src/server/scripts/Commands/cs_misc.cpp index 49bb282df..6b73d8605 100644 --- a/src/server/scripts/Commands/cs_misc.cpp +++ b/src/server/scripts/Commands/cs_misc.cpp @@ -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 {