aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXanadu <none@none>2010-05-13 17:57:59 +0200
committerXanadu <none@none>2010-05-13 17:57:59 +0200
commita891692d05d033896dfe030f373c31158b2649e6 (patch)
tree01f4804533ad67f96c9df06d2b4ae48e126971df /src
parent144a1468108c553f7f92f2d72511baadea0c7c28 (diff)
Fixed spell casting upon vehicle summoning.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/SpellEffects.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index f2ad9cd8f7a..5d5dae2e3b9 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -3732,8 +3732,13 @@ void Spell::EffectSummonType(uint32 i)
if (!summon || !summon->IsVehicle())
return;
- if (damage)
- m_caster->CastSpell(summon, damage, true);
+ if (m_spellInfo->EffectBasePoints[i])
+ {
+ SpellEntry const *spellProto = sSpellStore.LookupEntry(m_spellInfo->CalculateSimpleValue(i));
+ if (spellProto)
+ m_caster->CastSpell(summon, spellProto, true);
+ }
+
m_caster->EnterVehicle(summon->GetVehicleKit());
break;
}