mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[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:
parent
80b9e58106
commit
e568293d2c
3 changed files with 19 additions and 1 deletions
|
|
@ -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:
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue