[9106] Add script effect for spell 47097

Also add areaflag hack to detect correct areaId

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
NoFantasy 2010-01-03 03:36:28 +01:00
parent 80b9e58106
commit e568293d2c
3 changed files with 19 additions and 1 deletions

View file

@ -5145,6 +5145,19 @@ void Spell::EffectScriptEffect(uint32 effIndex)
break;
}
// Surge Needle Teleporter
case 47097:
{
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
return;
if (unitTarget->GetAreaId() == 4156)
unitTarget->CastSpell(unitTarget, 47324, true);
else if (unitTarget->GetAreaId() == 4157)
unitTarget->CastSpell(unitTarget, 47325, true);
break;
}
// Emblazon Runeblade
case 51770:
{