mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 07:37:03 +00:00
[9423] Implement dummy effect of spell 46485
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
b2019913d4
commit
6c44c6f5a7
2 changed files with 18 additions and 1 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue