Core/Auras: Implemented SPELL_AURA_ADV_FLYING

This commit is contained in:
Traesh
2024-10-12 17:10:50 +02:00
committed by Shauren
parent a9e4f5a9ce
commit c7a073140c
5 changed files with 29 additions and 9 deletions
+4
View File
@@ -8216,8 +8216,12 @@ void Unit::UpdateMountCapability()
if (!aurEff->GetAmount())
aurEff->GetBase()->Remove();
else if (MountCapabilityEntry const* capability = sMountCapabilityStore.LookupEntry(aurEff->GetAmount())) // aura may get removed by interrupt flag, reapply
{
SetFlightCapabilityID(capability->FlightCapabilityID, true);
if (!HasAura(capability->ModSpellAuraID))
CastSpell(this, capability->ModSpellAuraID, aurEff);
}
}
}