aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellEffects.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-14 09:57:57 -0500
committermegamage <none@none>2009-06-14 09:57:57 -0500
commite192d8f39b85ef504762bcbbd5c13a9885510f6b (patch)
treeb140f635725436e284f3522bc34c93283c175055 /src/game/SpellEffects.cpp
parentc6d242c2b6478797fe19897d54308e7ed8228874 (diff)
*Some work on vehicle.
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellEffects.cpp')
-rw-r--r--src/game/SpellEffects.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index 58f59f429c4..549f79ab5f4 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -5010,6 +5010,11 @@ void Spell::EffectScriptEffect(uint32 effIndex)
((Player*)m_caster)->learnSpell(discoveredSpell, false);
return;
}
+ case 62428: // Load into Catapult
+ if(m_caster->m_Vehicle && m_caster->GetTypeId() == TYPEID_UNIT && ((Creature*)m_caster)->isVehicle())
+ if(Unit *passenger = ((Vehicle*)m_caster)->GetPassenger(0))
+ passenger->CastSpell(m_caster->m_Vehicle, damage, true);
+ return;
}
break;
}