aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCraftedRO <24683355+CraftedRO@users.noreply.github.com>2025-06-09 22:54:02 +0300
committerGitHub <noreply@github.com>2025-06-09 21:54:02 +0200
commit59492b81d8a2bd16271bee238f119e430c4b1c69 (patch)
treeec7537041bc554938262331bc79a9567345b8f42 /src
parentf3a8f574577e293dbc2a137182ef1b5b5427573d (diff)
Core/Unit: Pet near teleport fix (#30766)
https: //github.com/psychobilli/TrinityCore/wiki/PetTeleportFix-Test-Notes Co-authored-by: psychobilli <42016077+psychobilli@users.noreply.github.com>
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Entities/Unit/Unit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index f5abdb65ce5..d3b8df73d81 100644
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -12868,7 +12868,7 @@ void Unit::NearTeleportTo(Position const& pos, bool casting /*= false*/)
if (GetTypeId() == TYPEID_PLAYER)
{
WorldLocation target(GetMapId(), pos);
- ToPlayer()->TeleportTo(target, TELE_TO_NOT_LEAVE_TRANSPORT | TELE_TO_NOT_LEAVE_COMBAT | TELE_TO_NOT_UNSUMMON_PET | (casting ? TELE_TO_SPELL : 0));
+ ToPlayer()->TeleportTo(target, TELE_TO_NOT_LEAVE_TRANSPORT | TELE_TO_NOT_LEAVE_COMBAT | (casting ? TELE_TO_SPELL : 0));
}
else
{