mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-07 01:18:55 +01:00
Core/Players: update mount capabilities when being added to the map
This commit is contained in:
@@ -18473,8 +18473,7 @@ void Player::UpdateMountCapabilities()
|
||||
{
|
||||
if (HasAuraType(SPELL_AURA_MOUNTED))
|
||||
{
|
||||
AuraEffectList mountEffects = GetAuraEffectsByType(SPELL_AURA_MOUNTED);
|
||||
for (AuraEffect* aurEff : mountEffects)
|
||||
for (AuraEffect* aurEff : GetAuraEffectsByType(SPELL_AURA_MOUNTED))
|
||||
{
|
||||
MountCapabilityEntry const* capability = GetMountCapability(uint32(aurEff->GetMiscValueB()));
|
||||
if (!capability)
|
||||
|
||||
@@ -142,6 +142,7 @@ void WorldSession::HandleMoveWorldportAck()
|
||||
}
|
||||
}
|
||||
|
||||
GetPlayer()->UpdateMountCapabilities();
|
||||
GetPlayer()->SendInitialPacketsAfterAddToMap();
|
||||
|
||||
// flight fast teleport case
|
||||
|
||||
Reference in New Issue
Block a user