[9418] Implement dummy effect of spell 45980

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2010-02-20 09:08:16 +01:00
parent 04e6187049
commit 828014dba1
2 changed files with 17 additions and 1 deletions

View file

@ -1201,6 +1201,22 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
m_caster->CastSpell(m_caster, 49378, true);
}
return;
case 45980:
{
if (m_caster->GetTypeId() == TYPEID_PLAYER && unitTarget)
{
if (const SpellEntry *pSpell = sSpellStore.LookupEntry(46022))
{
m_caster->CastSpell(unitTarget, pSpell, true);
((Player*)m_caster)->KilledMonsterCredit(pSpell->EffectMiscValue[EFFECT_INDEX_0], 0);
}
if (unitTarget->GetTypeId() == TYPEID_UNIT)
((Creature*)unitTarget)->ForcedDespawn();
}
return;
}
case 50243: // Teach Language
{
if (m_caster->GetTypeId() != TYPEID_PLAYER)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9417"
#define REVISION_NR "9418"
#endif // __REVISION_NR_H__