aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;
}