aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNaios <naios-dev@live.de>2012-10-22 20:12:46 +0200
committerNaios <naios-dev@live.de>2012-10-22 20:12:46 +0200
commit38b5a6c7be25fef3b9b16adc82dfbfaeebd76f53 (patch)
tree66ee7febc1fa2e17efb51f6ef8a42c6290275394 /src
parentbcabdb08e4890f5237e09e9a077b191d1acf16e6 (diff)
Core/Spells: On Dismount use the amount to get the MountCapabilityEntry to remove related mount auras #8123
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Auras/SpellAuraEffects.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
index d70c68b9be2..68e7cd398d0 100644
--- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp
+++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
@@ -717,7 +717,10 @@ int32 AuraEffect::CalculateAmount(Unit* caster)
break;
case SPELL_AURA_MOUNTED:
if (MountCapabilityEntry const* mountCapability = GetBase()->GetUnitOwner()->GetMountCapability(uint32(GetMiscValueB())))
+ {
amount = mountCapability->Id;
+ m_canBeRecalculated = false;
+ }
break;
case SPELL_AURA_MOD_RESISTANCE_EXCLUSIVE:
{
@@ -2809,7 +2812,7 @@ void AuraEffect::HandleAuraMounted(AuraApplication const* aurApp, uint8 mode, bo
target->RemoveAurasByType(SPELL_AURA_MOUNTED);
// remove speed aura
- if (MountCapabilityEntry const* mountCapability = target->GetMountCapability(uint32(GetMiscValueB())))
+ if (MountCapabilityEntry const* mountCapability = sMountCapabilityStore.LookupEntry(GetAmount()))
target->RemoveAurasDueToSpell(mountCapability->SpeedModSpell, target->GetGUID());
}
}