[10729] Add dummy aura effect of spell 47178 and dummy effect of 47176

Note: see comments in code for spell 47176

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2010-11-17 13:00:19 +01:00
parent 673b798863
commit 8140ff20d9
3 changed files with 15 additions and 1 deletions

View file

@ -2464,6 +2464,9 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
}
return;
}
case 47178: // Plague Effect Self
target->SetFeared(apply, GetCasterGUID(), GetId());
return;
case 58204: // LK Intro VO (1)
if (target->GetTypeId() == TYPEID_PLAYER)
{

View file

@ -1404,6 +1404,17 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
unitTarget->CastSpell(unitTarget,46798,true,m_CastItem,NULL,m_originalCasterGUID);
break;
}
case 47176: // Infect Ice Troll
{
// Spell has wrong areaGroupid, so it can not be casted where expected.
// TODO: research if spells casted by NPC, having TARGET_SCRIPT, can have disabled area check
if (!unitTarget)
return;
// Plague Effect Self
unitTarget->CastSpell(unitTarget, 47178, true);
return;
}
case 49357: // Brewfest Mount Transformation
{
if (m_caster->GetTypeId() != TYPEID_PLAYER)

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10728"
#define REVISION_NR "10729"
#endif // __REVISION_NR_H__