Skip to content

Commit 2c0ebbe

Browse files
authored
Core/Players: Allow delayed teleports to be executed even when not alive (#30228)
1 parent 515294f commit 2c0ebbe

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/server/game/Entities/Player/Player.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,9 +1323,7 @@ void Player::Update(uint32 p_time)
13231323
m_hostileReferenceCheckTimer -= p_time;
13241324
}
13251325

1326-
//we should execute delayed teleports only for alive(!) players
1327-
//because we don't want player's ghost teleported from graveyard
1328-
if (IsHasDelayedTeleport() && IsAlive())
1326+
if (IsHasDelayedTeleport())
13291327
TeleportTo(m_teleport_dest, m_teleport_options);
13301328
}
13311329

0 commit comments

Comments
 (0)