Fixed spell casting upon vehicle summoning.
--HG-- branch : trunk
This commit is contained in:
@@ -3732,8 +3732,13 @@ void Spell::EffectSummonType(uint32 i)
|
|||||||
if (!summon || !summon->IsVehicle())
|
if (!summon || !summon->IsVehicle())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (damage)
|
if (m_spellInfo->EffectBasePoints[i])
|
||||||
m_caster->CastSpell(summon, damage, true);
|
{
|
||||||
|
SpellEntry const *spellProto = sSpellStore.LookupEntry(m_spellInfo->CalculateSimpleValue(i));
|
||||||
|
if (spellProto)
|
||||||
|
m_caster->CastSpell(summon, spellProto, true);
|
||||||
|
}
|
||||||
|
|
||||||
m_caster->EnterVehicle(summon->GetVehicleKit());
|
m_caster->EnterVehicle(summon->GetVehicleKit());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user