[10818] Add dummy effect of spell 47170

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2010-12-02 15:26:01 +01:00
parent c8abfa4afa
commit 49881d4215
2 changed files with 15 additions and 1 deletions

View file

@ -1379,6 +1379,20 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
unitTarget->CastSpell(unitTarget,46798,true,m_CastItem,NULL,m_originalCasterGUID);
break;
}
case 47170: // Impale Leviroth
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_UNIT)
return;
unitTarget->SetHealthPercent(8.0f);
// Cosmetic - Underwater Blood (no sound)
// Spell persist through death, but should not be there at respawn (TODO: some research, so this&similar are removed at resp.)
unitTarget->CastSpell(unitTarget, 47172, true);
((Creature*)unitTarget)->AI()->AttackStart(m_caster);
return;
}
case 47176: // Infect Ice Troll
{
// Spell has wrong areaGroupid, so it can not be casted where expected.