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