Core/Players: update mount capabilities when being added to the map

This commit is contained in:
Ovahlord
2021-10-30 15:40:58 +02:00
parent f694f0409f
commit 9ee2af2312
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -142,6 +142,7 @@ void WorldSession::HandleMoveWorldportAck()
}
}
GetPlayer()->UpdateMountCapabilities();
GetPlayer()->SendInitialPacketsAfterAddToMap();
// flight fast teleport case