Fixed spell casting upon vehicle summoning.

--HG--
branch : trunk
This commit is contained in:
Xanadu
2010-05-13 17:57:59 +02:00
parent 144a146810
commit a891692d05
+7 -2
View File
@@ -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;
}