mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
Core/Movement: update player position after being added to map and re-send swim fly transition packet after being teleported
This commit is contained in:
@@ -23701,6 +23701,7 @@ void Player::SendInitialPacketsBeforeAddToMap()
|
||||
|
||||
void Player::SendInitialPacketsAfterAddToMap()
|
||||
{
|
||||
UpdatePositionData();
|
||||
UpdateVisibilityForPlayer();
|
||||
|
||||
// update zone
|
||||
@@ -23733,6 +23734,9 @@ void Player::SendInitialPacketsAfterAddToMap()
|
||||
|
||||
UpdateMountCapabilities();
|
||||
|
||||
if (CanFly())
|
||||
SendMovementSetCanTransitionBetweenSwimAndFly(true);
|
||||
|
||||
if (HasAuraType(SPELL_AURA_MOD_STUN))
|
||||
SetRooted(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user