[9419] Implement dummy effect of spell 45990

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
X-Savior 2010-02-20 10:31:25 +01:00 committed by NoFantasy
parent 828014dba1
commit f9a5d37bf6
2 changed files with 12 additions and 2 deletions

View file

@ -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)
{
@ -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)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9418"
#define REVISION_NR "9419"
#endif // __REVISION_NR_H__