From a891692d05d033896dfe030f373c31158b2649e6 Mon Sep 17 00:00:00 2001 From: Xanadu Date: Thu, 13 May 2010 17:57:59 +0200 Subject: [PATCH] Fixed spell casting upon vehicle summoning. --HG-- branch : trunk --- src/game/SpellEffects.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index f2ad9cd8f7..5d5dae2e3b 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; }