aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTrista <aconstantgoal@abv.bg>2012-12-28 04:11:06 +0200
committerTrista <aconstantgoal@abv.bg>2012-12-28 04:11:51 +0200
commit95152d57539064d8278e323899290cba2fb2b0cd (patch)
tree9a55710cc6e381895a3f4ac374e3f485967b14ac /src
parent8272affe92fce922ffc898930bcc8d1ce8476bf3 (diff)
Core/Vehicles: Closes all issues with seats for real (finishing and fixing previous change)
* Author, Joschiwald, all credits to him please * DieSide should be not calculated with basepoints for these auras, thiss correctly finish previous fix 452e585f7b4b2bc349d7386b0c42cf296f0ab4c2 from Horn * What it fixes, FL, XT, Demolishers, Accessories, Not being able to leave vehicle and so many more can't track them sorry
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Auras/SpellAuraEffects.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
index 745a7baab8f..eade0b5e8b5 100644
--- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp
+++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
@@ -454,6 +454,11 @@ int32 AuraEffect::CalculateAmount(Unit* caster)
// custom amount calculations go here
switch (GetAuraType())
{
+ // Control vehicle auras should not get m_amount sum out of basepoints and DieSide calculated together,
+ // but only from basepoints. Only such aura case fow now so handle it here.
+ case SPELL_AURA_CONTROL_VEHICLE:
+ m_amount = m_baseAmount;
+ break;
// crowd control auras
case SPELL_AURA_MOD_CONFUSE:
case SPELL_AURA_MOD_FEAR:
@@ -3199,7 +3204,6 @@ void AuraEffect::HandleAuraControlVehicle(AuraApplication const* aurApp, uint8 m
if (apply)
{
- // correct amount is already calculated adding one more -1 meant calculated amount - 1
caster->_EnterVehicle(target->GetVehicleKit(), m_amount, aurApp);
}
else