[9423] Implement dummy effect of spell 46485

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2010-02-20 18:34:30 +01:00
parent b2019913d4
commit 6c44c6f5a7
2 changed files with 18 additions and 1 deletions

View file

@ -1266,6 +1266,23 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
} }
return; return;
} }
case 46485: // Greatmother's Soulcatcher
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
return;
if (const SpellEntry *pSpell = sSpellStore.LookupEntry(46486))
{
m_caster->CastSpell(unitTarget, pSpell, true);
if (const SpellEntry *pSpellCredit = sSpellStore.LookupEntry(pSpell->EffectMiscValue[EFFECT_INDEX_0]))
((Player*)m_caster)->KilledMonsterCredit(pSpellCredit->EffectMiscValue[EFFECT_INDEX_0], 0);
((Creature*)unitTarget)->ForcedDespawn();
}
return;
}
case 46606: // Plague Canister Dummy case 46606: // Plague Canister Dummy
{ {
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT) if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "9422" #define REVISION_NR "9423"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__