Skip to content

Commit

Permalink
[9419] Implement dummy effect of spell 45990
Browse files Browse the repository at this point in the history
Signed-off-by: NoFantasy <nofantasy@nf.no>
  • Loading branch information
X-Savior authored and NoFantasy committed Feb 20, 2010
1 parent e9fe1d2 commit 9ca439d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion src/game/SpellEffects.cpp
Expand Up @@ -1201,7 +1201,7 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
m_caster->CastSpell(m_caster, 49378, true);
}
return;
case 45980:
case 45980: // Re-Cursive Transmatter Injection
{
if (m_caster->GetTypeId() == TYPEID_PLAYER && unitTarget)
{
Expand All @@ -1217,6 +1217,16 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)

return;
}
case 45990: // Collect Oil
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
return;

m_caster->CastSpell(m_caster, 45991, true);
unitTarget->setDeathState(JUST_DIED);
unitTarget->SetHealth(0);
return;
}
case 50243: // Teach Language
{
if (m_caster->GetTypeId() != TYPEID_PLAYER)
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9418"
#define REVISION_NR "9419"
#endif // __REVISION_NR_H__

0 comments on commit 9ca439d

Please sign in to comment.