Skip to content

Commit 59492b8

Browse files
Core/Unit: Pet near teleport fix (TrinityCore#30766)
https: //github.com/psychobilli/TrinityCore/wiki/PetTeleportFix-Test-Notes Co-authored-by: psychobilli <[email protected]>
1 parent f3a8f57 commit 59492b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/game/Entities/Unit/Unit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12868,7 +12868,7 @@ void Unit::NearTeleportTo(Position const& pos, bool casting /*= false*/)
1286812868
if (GetTypeId() == TYPEID_PLAYER)
1286912869
{
1287012870
WorldLocation target(GetMapId(), pos);
12871-
ToPlayer()->TeleportTo(target, TELE_TO_NOT_LEAVE_TRANSPORT | TELE_TO_NOT_LEAVE_COMBAT | TELE_TO_NOT_UNSUMMON_PET | (casting ? TELE_TO_SPELL : 0));
12871+
ToPlayer()->TeleportTo(target, TELE_TO_NOT_LEAVE_TRANSPORT | TELE_TO_NOT_LEAVE_COMBAT | (casting ? TELE_TO_SPELL : 0));
1287212872
}
1287312873
else
1287412874
{

0 commit comments

Comments
 (0)