mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[9418] Implement dummy effect of spell 45980
Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
04e6187049
commit
828014dba1
2 changed files with 17 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9417"
|
||||
#define REVISION_NR "9418"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue