Skip to content

Commit

Permalink
[9423] Implement dummy effect of spell 46485
Browse files Browse the repository at this point in the history
Signed-off-by: NoFantasy <nofantasy@nf.no>
  • Loading branch information
NoFantasy committed Feb 20, 2010
1 parent b87c746 commit c01ae04
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions src/game/SpellEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9422"
#define REVISION_NR "9423"
#endif // __REVISION_NR_H__

1 comment on commit c01ae04

@PSZ
Copy link
Contributor

@PSZ PSZ commented on c01ae04 Feb 20, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more dummy-effect ;)

diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
index b5f29ac..792204a 100644
--- a/src/game/SpellEffects.cpp
+++ b/src/game/SpellEffects.cpp
@@ -1172,6 +1172,15 @@ void Spell::EffectDummy(uint32 i)
m_caster->CastSpell(m_caster, 45088, true);
return;
}

  •            case 46167:                                 // Planning for the Future: Create Snowfall Glade Pup Cover
    
  •            {
    
  •                // Simply despawn target
    
  •                if (!unitTarget)
    
  •                    return;
    
  •                ((Creature*)unitTarget)->ForcedDespawn();
    
  •                return;
    
  •            }
             case 49357:                                 // Brewfest Mount Transformation
                 if (m_caster->GetTypeId() != TYPEID_PLAYER)
                     return;
    

Please sign in to comment.