From 6c44c6f5a729e4103051c25d9a87b2d9e47ba115 Mon Sep 17 00:00:00 2001 From: NoFantasy Date: Sat, 20 Feb 2010 18:34:30 +0100 Subject: [PATCH] [9423] Implement dummy effect of spell 46485 Signed-off-by: NoFantasy --- src/game/SpellEffects.cpp | 17 +++++++++++++++++ src/shared/revision_nr.h | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index c08a2d450..97480934c 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -1266,6 +1266,23 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx) } 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 { if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT) diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 097032cef..30f2d6aba 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "9422" + #define REVISION_NR "9423" #endif // __REVISION_NR_H__