diff options
author | Xanadu <none@none> | 2010-05-13 17:57:59 +0200 |
---|---|---|
committer | Xanadu <none@none> | 2010-05-13 17:57:59 +0200 |
commit | a891692d05d033896dfe030f373c31158b2649e6 (patch) | |
tree | 01f4804533ad67f96c9df06d2b4ae48e126971df /src | |
parent | 144a1468108c553f7f92f2d72511baadea0c7c28 (diff) |
Fixed spell casting upon vehicle summoning.
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/SpellEffects.cpp | 9 |
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; } |